diff --git a/library/Icinga/Web/Navigation/NavigationItem.php b/library/Icinga/Web/Navigation/NavigationItem.php index a4294fa0a..2c70bf37e 100644 --- a/library/Icinga/Web/Navigation/NavigationItem.php +++ b/library/Icinga/Web/Navigation/NavigationItem.php @@ -505,7 +505,7 @@ class NavigationItem implements IteratorAggregate * * @return View */ - public function getView() + public function view() { if ($this->view === null) { $this->setView(Icinga::app()->getViewRenderer()->view); @@ -607,25 +607,23 @@ class NavigationItem implements IteratorAggregate */ public function render() { - $view = $this->getView(); - - $label = $view->escape($this->getLabel()); + $label = $this->view()->escape($this->getLabel()); if (($icon = $this->getIcon()) !== null) { - $label = $view->icon($icon) . $label; + $label = $this->view()->icon($icon) . $label; } if (($url = $this->getUrl()) !== null) { $content = sprintf( '%s', - $view->propertiesToString($this->getAttributes()), - $view->url($url, $this->getUrlParameters()), + $this->view()->propertiesToString($this->getAttributes()), + $this->view()->url($url, $this->getUrlParameters()), $label ); } else { $content = sprintf( '<%1$s%2$s>%3$s', static::LINK_ALTERNATIVE, - $view->propertiesToString($this->getAttributes()), + $this->view()->propertiesToString($this->getAttributes()), $label ); }