Changeset 13075

Show
Ignore:
Timestamp:
12/15/11 19:41:42 (1 year ago)
Author:
p_lindheimer
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.10/amp_conf/htdocs/admin/bootstrap.php

    r12970 r13075  
    171171      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")) { 
    172172        require_once($amp_conf['AMPWEBROOT']."/admin/modules/{$key}/functions.inc.php"); 
     173 
     174        // Zend appears to break class auto-loading. Therefore, if we detect there is a module that requires Zend  
     175        // we will include all the potential classes at this point. 
     176        // 
     177        if (!$force_autoload && isset($module['depends']['phpcomponent']) && stristr($module['depends']['phpcomponent'], 'zend')) { 
     178          fpbx_framework_autoloader(true); 
     179          $force_autoload = true; 
     180        } 
    173181      }  
    174182      //create an array of module sections to display