@@ 146-155 (lines=10) @@ | ||
143 | */ |
|
144 | private static function loadFramework($name) |
|
145 | { |
|
146 | if (!self::fileExists($file = \XoopsBaseConfig::get('root-path') . '/Frameworks/' . $name . '/xoops' . $name . '.php')) { |
|
147 | /* |
|
148 | trigger_error( |
|
149 | 'File ' . str_replace(\XoopsBaseConfig::get('root-path'), '', $file) |
|
150 | . ' not found in file ' . __FILE__ . ' at line ' . __LINE__, |
|
151 | E_USER_WARNING |
|
152 | ); |
|
153 | */ |
|
154 | return false; |
|
155 | } |
|
156 | include_once $file; |
|
157 | $class = 'Xoops' . ucfirst($name); |
|
158 | if (class_exists($class, false)) { |
|
@@ 437-441 (lines=5) @@ | ||
434 | } else { |
|
435 | return false; |
|
436 | } |
|
437 | if (self::fileExists($file = \XoopsBaseConfig::get('root-path') . '/modules/' . $dirname . '/include/autoload.php')) { |
|
438 | if (!$configs = include $file) { |
|
439 | return false; |
|
440 | } |
|
441 | } |
|
442 | } |
|
443 | ||
444 | return array_merge(XoopsLoad::loadCoreConfig(), $configs); |