NavigationItem: Fix locating a module's custom navigation renderer

refs #5600
This commit is contained in:
Johannes Meyer 2015-09-04 13:47:17 +02:00
parent 398f3ef413
commit 1a42c04c8e
1 changed files with 1 additions and 1 deletions

View File

@ -614,7 +614,7 @@ class NavigationItem implements IteratorAggregate
$renderer = null; $renderer = null;
foreach (Icinga::app()->getModuleManager()->getLoadedModules() as $module) { 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)) { if (class_exists($classPath)) {
$renderer = new $classPath($options); $renderer = new $classPath($options);
break; break;