Changeset 13077

Show
Ignore:
Timestamp:
12/15/11 20:44:36 (1 year ago)
Author:
p_lindheimer
Message:

Merged revisions 13075-13076 via svnmerge from
http://www.freepbx.org/v2/svn/freepbx/branches/2.10

........

r13075 | p_lindheimer | 2011-12-15 16:41:42 -0800 (Thu, 15 Dec 2011) | 1 line


fixes #5475 force fpbx_framework_autoloader(true) if a module says it needs Zend

........

r13076 | p_lindheimer | 2011-12-15 16:43:10 -0800 (Thu, 15 Dec 2011) | 1 line


re #5475 initialize force_autoload

........

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.9

    • Property svn:mergeinfo set to /freepbx/branches/2.10:13075-13076
    • Property svnmerge-integrated changed from /freepbx/branches/2.10:1-12618,12932 /freepbx/branches/2.8:1-11479,12035 to /freepbx/branches/2.8:1-11479,12035 /freepbx/branches/2.10:1-12618,12932,13075-13076
  • freepbx/branches/2.9/amp_conf/htdocs/admin/bootstrap.php

    r12183 r13077  
    146146  if(is_array($active_modules)){ 
    147147 
     148    $force_autoload = false; 
    148149    foreach($active_modules as $key => $module) { 
    149150      //include module functions if there not dissabled 
    150151      if ((!$restrict_mods_local || (is_array($restrict_mods_local) && isset($restrict_mods_local[$key]))) && is_file($amp_conf['AMPWEBROOT']."/admin/modules/{$key}/functions.inc.php")) { 
    151152        require_once($amp_conf['AMPWEBROOT']."/admin/modules/{$key}/functions.inc.php"); 
     153 
     154        // Zend appears to break class auto-loading. Therefore, if we detect there is a module that requires Zend  
     155        // we will include all the potential classes at this point. 
     156        // 
     157        if (!$force_autoload && isset($module['depends']['phpcomponent']) && stristr($module['depends']['phpcomponent'], 'zend')) { 
     158          fpbx_framework_autoloader(true); 
     159          $force_autoload = true; 
     160        } 
    152161      }  
    153162      //create an array of module sections to display