diff --git a/library/Icinga/Application/Modules/Module.php b/library/Icinga/Application/Modules/Module.php index 29a3b78dc..f8a1b3d05 100644 --- a/library/Icinga/Application/Modules/Module.php +++ b/library/Icinga/Application/Modules/Module.php @@ -1007,15 +1007,16 @@ class Module } /** - * Provide a new type of configurable navigation item + * Provide a new type of configurable navigation item with a optional label * * @param string $type + * @param string $label * * @return $this */ - protected function provideNavigationItem($type) + protected function provideNavigationItem($type, $label = null) { - $this->navigationItems[] = $type; + $this->navigationItems[$type] = $label ?: $type; return $this; }