mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
parent
d8f45fc9b1
commit
63e0549618
@ -436,7 +436,7 @@ class NavigationItem implements IteratorAggregate
|
||||
*/
|
||||
public function getLabel()
|
||||
{
|
||||
return $this->label ?: $this->getName();
|
||||
return $this->label !== null ? $this->label : $this->getName();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -56,7 +56,7 @@ class NavigationItemRenderer
|
||||
*/
|
||||
public function init()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -164,13 +164,15 @@ class NavigationItemRenderer
|
||||
$this->renderTargetAttribute(),
|
||||
$label
|
||||
);
|
||||
} else {
|
||||
} elseif ($label) {
|
||||
$content = sprintf(
|
||||
'<%1$s%2$s>%3$s</%1$s>',
|
||||
$item::LINK_ALTERNATIVE,
|
||||
$this->view()->propertiesToString($item->getAttributes()),
|
||||
$label
|
||||
);
|
||||
} else {
|
||||
$content = '';
|
||||
}
|
||||
|
||||
return $content;
|
||||
|
Loading…
x
Reference in New Issue
Block a user