Changeset 13165

Show
Ignore:
Timestamp:
01/05/12 16:39:19 (1 year ago)
Author:
p_lindheimer
Message:

no autoloader in 2.9

Files:

Legend:

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

    r13077 r13165  
    146146  if(is_array($active_modules)){ 
    147147 
    148     $force_autoload = false; 
    149148    foreach($active_modules as $key => $module) { 
    150149      //include module functions if there not dissabled 
    151150      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")) { 
    152151        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         } 
    161152      }  
    162153      //create an array of module sections to display