mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
Fix modules identifier
This commit is contained in:
parent
a2566d3e3c
commit
d045ec5411
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user