Skip to content

Commit

Permalink
NavigationItem: Fix locating a module's custom navigation renderer
Browse files Browse the repository at this point in the history
refs #5600
  • Loading branch information
Johannes Meyer committed Sep 4, 2015
1 parent 398f3ef commit 1a42c04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Icinga/Web/Navigation/NavigationItem.php
Expand Up @@ -614,7 +614,7 @@ protected function createRenderer($name)

$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;
Expand Down

0 comments on commit 1a42c04

Please sign in to comment.