mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-09 13:38:41 +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 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]);
|
$this->controllers[$controller] = $this->app->moduleManager->get($split[2]);
|
||||||
} else {
|
} else {
|
||||||
$this->controllers[$controller] = new $controller($this->app);
|
$this->controllers[$controller] = new $controller($this->app);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user