From d045ec5411ea8ada28b833121991cfb819550c0a Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 17 Feb 2017 21:47:46 +0100 Subject: [PATCH] Fix modules identifier --- Dispatcher/Dispatcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dispatcher/Dispatcher.php b/Dispatcher/Dispatcher.php index d83e7a450..d82dc1cfb 100644 --- a/Dispatcher/Dispatcher.php +++ b/Dispatcher/Dispatcher.php @@ -185,7 +185,7 @@ class Dispatcher } // If module controller use module manager for initialization - if(count($split = explode('\\', $controller)) === 4) { + if(strpos('\Modules', $controller) === 0) { $this->controllers[$controller] = $this->app->moduleManager->get($split[2]); } else { $this->controllers[$controller] = new $controller($this->app);