parent
72592fcccf
commit
a1709a0670
|
@ -161,11 +161,13 @@ class Navigation implements ArrayAccess, Countable, IteratorAggregate
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($item === null) {
|
if ($item === null) {
|
||||||
|
if ($itemType !== 'MenuItem') {
|
||||||
Logger::debug(
|
Logger::debug(
|
||||||
'Failed to find custom navigation item class %s for item %s. Using base class NavigationItem now',
|
'Failed to find custom navigation item class %s for item %s. Using base class NavigationItem now',
|
||||||
$itemType,
|
$itemType,
|
||||||
$name
|
$name
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
$item = new NavigationItem($name, $properties);
|
$item = new NavigationItem($name, $properties);
|
||||||
static::$types[$itemType] = 'Icinga\\Web\\Navigation\\NavigationItem';
|
static::$types[$itemType] = 'Icinga\\Web\\Navigation\\NavigationItem';
|
||||||
|
|
Loading…
Reference in New Issue