Remove auto-detection of modules to enhance performance.
This commit is contained in:
parent
26bc2379c4
commit
cc9c45710b
|
@ -40,11 +40,6 @@
|
|||
require SYS_PATH.'config'.EXT;
|
||||
require SYS_PATH.'arr'.EXT;
|
||||
|
||||
// --------------------------------------------------------------
|
||||
// Detect all of the application modules.
|
||||
// --------------------------------------------------------------
|
||||
Config::set('application.modules', $modules = array_map('basename', glob(MODULE_PATH.'*', GLOB_ONLYDIR)));
|
||||
|
||||
// --------------------------------------------------------------
|
||||
// Register the auto-loader.
|
||||
// --------------------------------------------------------------
|
||||
|
@ -131,7 +126,7 @@
|
|||
// --------------------------------------------------------------
|
||||
if (is_null($response))
|
||||
{
|
||||
if (in_array($module = Request::segment(1), $modules))
|
||||
if (in_array($module = Request::segment(1), Config::get('application.modules')))
|
||||
{
|
||||
define('ACTIVE_MODULE', $module);
|
||||
|
||||
|
|
Loading…
Reference in New Issue