mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +02:00
parent
7d167d0191
commit
411c6e0546
@ -141,7 +141,12 @@ class Navigation implements ArrayAccess, Countable, IteratorAggregate
|
||||
|
||||
$item = null;
|
||||
foreach (Icinga::app()->getModuleManager()->getLoadedModules() as $module) {
|
||||
$classPath = 'Icinga\\Module\\' . $module->getName() . '\\' . static::NAVIGATION_NS . '\\' . $itemType;
|
||||
$classPath = 'Icinga\\Module\\'
|
||||
. ucfirst($module->getName())
|
||||
. '\\'
|
||||
. static::NAVIGATION_NS
|
||||
. '\\'
|
||||
. $itemType;
|
||||
if (class_exists($classPath)) {
|
||||
$item = new $classPath($name, $properties);
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user