Changeset 12522
- Timestamp:
- 09/15/11 20:05:23 (8 months ago)
- Files:
-
- freepbx/trunk/amp_conf/bin/module_admin (modified) (1 diff)
- freepbx/trunk/amp_conf/htdocs/admin/functions.inc.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/trunk/amp_conf/bin/module_admin
r12445 r12522 24 24 include_once('/etc/asterisk/freepbx.conf'); 25 25 } 26 27 // Force autoloader to load all the includes since Zend issues can break and make this fail when this is run 28 // 29 fpbx_framework_autoloader(true); 26 30 27 31 function doReload() { freepbx/trunk/amp_conf/htdocs/admin/functions.inc.php
r12446 r12522 95 95 $class = 'component'; 96 96 } 97 switch($class){ 97 98 /* Special case of TRUE forces all classes to be loaded. Make sure to add new classes to this array 99 * as they are added to the autoloader. This was added because the presence of Zend enabled modules 100 * can result in the autoloader function failing. 101 * 102 * Basically, every 'case' below should have a corresponding entry in the $class array below. 103 */ 104 if ($class === true) { 105 $class = array('ampuser','CI_Email','CI_Table','CssMin','component','featurecode','cronmanager','moduleHook','modulelist','notifications','xml2Array'); 106 } else { 107 $class = array($class); 108 } 109 110 foreach ($class as $this_class) switch($this_class){ 98 111 case 'ampuser': 99 112 require_once($dirname . '/libraries/ampuser.class.php'); … … 130 143 break; 131 144 case 'CssMin': 132 require_once( 'libraries/cssmin.class.php');145 require_once($dirname . '/libraries/cssmin.class.php'); 133 146 break; 134 147 case 'component':
