From 411c6e0546f00bbda7189c21f4c7a1c3a0675960 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 7 Sep 2015 12:01:05 +0200 Subject: [PATCH] Navigation: Fix that a module's item class is not found refs #5600 --- library/Icinga/Web/Navigation/Navigation.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/library/Icinga/Web/Navigation/Navigation.php b/library/Icinga/Web/Navigation/Navigation.php index 4307a68c5..8b0990e2e 100644 --- a/library/Icinga/Web/Navigation/Navigation.php +++ b/library/Icinga/Web/Navigation/Navigation.php @@ -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;