Changeset 13165
- Timestamp:
- 01/05/12 16:39:19 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.9/amp_conf/htdocs/admin/bootstrap.php
r13077 r13165 146 146 if(is_array($active_modules)){ 147 147 148 $force_autoload = false;149 148 foreach($active_modules as $key => $module) { 150 149 //include module functions if there not dissabled 151 150 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")) { 152 151 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 Zend155 // 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 }161 152 } 162 153 //create an array of module sections to display
