From 9789aed870e86b4b97d866b42a6b980f6c6444f7 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Sun, 27 Sep 2015 13:29:22 +0200 Subject: [PATCH] lib: Fix navigation renderer usage in the limiter widget refs #5543 --- library/Icinga/Web/Widget/Limiter.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/library/Icinga/Web/Widget/Limiter.php b/library/Icinga/Web/Widget/Limiter.php index 7e7cbf214..890589657 100644 --- a/library/Icinga/Web/Widget/Limiter.php +++ b/library/Icinga/Web/Widget/Limiter.php @@ -5,7 +5,6 @@ namespace Icinga\Web\Widget; use Icinga\Web\Navigation\Navigation; use Icinga\Web\Navigation\NavigationItem; -use Icinga\Web\Navigation\NavigationRenderer; use Icinga\Web\Url; /** @@ -102,10 +101,10 @@ class Limiter extends AbstractWidget ->setLabel(t('all')); $navigation->addItem($navigationItem); } - $navigationRenderer = new NavigationRenderer($navigation); - $navigationRenderer + return $navigation + ->getRenderer() ->setCssClass(static::CSS_CLASS_LIMITER) - ->setHeading(t('Limiter')); - return $navigationRenderer->render(); + ->setHeading(t('Limiter')) + ->render(); } }