mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 22:34:24 +02:00
parent
fae2e0979a
commit
e31dce97a9
@ -44,10 +44,10 @@ class Dispatcher extends Zend_Controller_Dispatcher_Standard
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$controllerName = ucfirst($controllerName) . 'Controller';
|
$controllerName = ucfirst($controllerName) . 'Controller';
|
||||||
if ($this->_defaultModule === $this->_curModule) {
|
if ($this->_defaultModule === $moduleName = $request->getModuleName()) {
|
||||||
$controllerClass = 'Icinga\\' . self::CONTROLLER_NAMESPACE . '\\' . $controllerName;
|
$controllerClass = 'Icinga\\' . self::CONTROLLER_NAMESPACE . '\\' . $controllerName;
|
||||||
} else {
|
} else {
|
||||||
$controllerClass = 'Icinga\\Module\\' . $this->_curModule . '\\' . self::CONTROLLER_NAMESPACE . '\\'
|
$controllerClass = 'Icinga\\Module\\' . ucfirst($moduleName) . '\\' . self::CONTROLLER_NAMESPACE . '\\'
|
||||||
. $controllerName;
|
. $controllerName;
|
||||||
}
|
}
|
||||||
if (! class_exists($controllerClass)) {
|
if (! class_exists($controllerClass)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user