parent
2834e206d5
commit
c35db55857
|
@ -139,7 +139,7 @@ class Navigation implements ArrayAccess, Countable, IteratorAggregate
|
||||||
foreach (Icinga::app()->getModuleManager()->getLoadedModules() as $module) {
|
foreach (Icinga::app()->getModuleManager()->getLoadedModules() as $module) {
|
||||||
$classPath = 'Icinga\\Module\\' . $module->getName() . '\\' . static::NAVIGATION_NS . '\\' . $itemType;
|
$classPath = 'Icinga\\Module\\' . $module->getName() . '\\' . static::NAVIGATION_NS . '\\' . $itemType;
|
||||||
if (class_exists($classPath)) {
|
if (class_exists($classPath)) {
|
||||||
$item = $classPath($name, $properties);
|
$item = new $classPath($name, $properties);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue