Changeset 12266

Show
Ignore:
Timestamp:
06/23/11 16:46:16 (2 years ago)
Author:
mbrevda
Message:

fix issues loading some classes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/htdocs/admin/functions.inc.php

    r12223 r12266  
    7777    case 'CI_Email': 
    7878      //make upstream scripts happy - for $CI_Email->_set_error_message() 
    79       if (!function_exits('get_instance')) { 
     79      if (!function_exists('log_message')) { 
     80        function log_message(){}; 
     81      } 
     82      if (!function_exists('get_instance')) { 
    8083        function get_instance(){return new ci_def();} 
    8184      } 
     
    8386        class ci_def {function __construct(){$this->lang = new ci_lan_def();}} 
    8487      } 
    85       if (!class_exisits('ci_lan_def')) { 
     88      if (!class_exists('ci_lan_def')) { 
    8689        class ci_lan_def {function load(){return false;} function line(){return false;}}  
    8790      } 
    88       if (!defined('BASEPATH')){define('BASEPATH', '');} 
     91      if (!defined('BASEPATH')){ 
     92        define('BASEPATH', ''); 
     93      } 
     94      if (!defined('FOPEN_READ')) { 
     95        define('FOPEN_READ', 'rb'); 
     96      } 
    8997      require_once($dirname . '/helpers/Email.php'); 
    9098      break;