Ignore:
Timestamp:
11/29/12 13:44:33 (11 years ago)
Author:
pereira.jair
Message:

Ticket #2507 - Correção da varíavel global DIR que estava incorreta.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/webservice/api/rest/mail/SendResource.php

    r6666 r7577  
    4646                                if($this->getExpressoVersion() != "2.2") 
    4747                                { 
    48                                         require_once (__DIR__.'/../../../prototype/api/controller.php'); 
    49                                         Controller::addFallbackHandler( 0, function($e){ 
    50                                                 throw $e; 
    51                                         } ); 
    52                                  
     48 
     49                                        $fileInclude = apiDirectory.'/../../../prototype/api/controller.php'; 
     50                                        try { 
     51                                                require_once ($fileInclude); 
     52 
     53                                                Controller::addFallbackHandler(0,$this->fallBackHandler($e)); 
     54                                        } catch (Exception $e) { 
     55                                                Errors::runException($e->getMessage()); 
     56                                        } 
     57 
    5358                                        $result = array(); 
    5459                                        $attachments_ids = array(); 
     
    7984        } 
    8085 
     86        function fallBackHandler($e) { 
     87                throw $e; 
     88    } 
     89 
    8190} 
Note: See TracChangeset for help on using the changeset viewer.