diff --git a/src/App/App.php b/src/App/App.php index 4104ebd..eaaf72b 100644 --- a/src/App/App.php +++ b/src/App/App.php @@ -247,12 +247,12 @@ private function _runHooks() { */ private function _runModules() { - if (is_dir($modulesPath = App::ROOT() . 'modules' . App::DS)) { + if (class_exists($Module = 'Eliasis\Module\Module')) { - if (class_exists($Module = 'Eliasis\Module\Module')) { + $Module::loadModules( - $Module::loadModules($modulesPath); - } + $modulesPath = App::ROOT() . 'modules' . App::DS + ); } }