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