NavigationItem: Fix locating a module's custom navigation renderer
refs #5600
This commit is contained in:
parent
398f3ef413
commit
1a42c04c8e
|
@ -614,7 +614,7 @@ class NavigationItem implements IteratorAggregate
|
|||
|
||||
$renderer = null;
|
||||
foreach (Icinga::app()->getModuleManager()->getLoadedModules() as $module) {
|
||||
$classPath = 'Icinga\\Module\\' . $module->getName() . '\\' . static::RENDERER_NS . '\\' . $name;
|
||||
$classPath = 'Icinga\\Module\\' . ucfirst($module->getName()) . '\\' . static::RENDERER_NS . '\\' . $name;
|
||||
if (class_exists($classPath)) {
|
||||
$renderer = new $classPath($options);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue