diff --git a/Dispatcher/Dispatcher.php b/Dispatcher/Dispatcher.php index d82dc1cfb..d54dd3c97 100644 --- a/Dispatcher/Dispatcher.php +++ b/Dispatcher/Dispatcher.php @@ -185,7 +185,7 @@ class Dispatcher } // If module controller use module manager for initialization - if(strpos('\Modules', $controller) === 0) { + if(strpos('\Modules\Controller', $controller) === 0) { $this->controllers[$controller] = $this->app->moduleManager->get($split[2]); } else { $this->controllers[$controller] = new $controller($this->app);