Navigation: Add missing new keyword

refs #5600
This commit is contained in:
Johannes Meyer 2015-09-03 11:26:27 +02:00
parent 2834e206d5
commit c35db55857
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }
} }