Changeset 7577 for sandbox/webservice/api/rest/mail/SendResource.php
- Timestamp:
- 11/29/12 13:44:33 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/webservice/api/rest/mail/SendResource.php
r6666 r7577 46 46 if($this->getExpressoVersion() != "2.2") 47 47 { 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 53 58 $result = array(); 54 59 $attachments_ids = array(); … … 79 84 } 80 85 86 function fallBackHandler($e) { 87 throw $e; 88 } 89 81 90 }
Note: See TracChangeset
for help on using the changeset viewer.