lib: Fix navigation renderer usage in the limiter widget

refs #5543
This commit is contained in:
Eric Lippmann 2015-09-27 13:29:22 +02:00
parent a9f0aa6bcd
commit 9789aed870
1 changed files with 4 additions and 5 deletions

View File

@ -5,7 +5,6 @@ namespace Icinga\Web\Widget;
use Icinga\Web\Navigation\Navigation; use Icinga\Web\Navigation\Navigation;
use Icinga\Web\Navigation\NavigationItem; use Icinga\Web\Navigation\NavigationItem;
use Icinga\Web\Navigation\NavigationRenderer;
use Icinga\Web\Url; use Icinga\Web\Url;
/** /**
@ -102,10 +101,10 @@ class Limiter extends AbstractWidget
->setLabel(t('all')); ->setLabel(t('all'));
$navigation->addItem($navigationItem); $navigation->addItem($navigationItem);
} }
$navigationRenderer = new NavigationRenderer($navigation); return $navigation
$navigationRenderer ->getRenderer()
->setCssClass(static::CSS_CLASS_LIMITER) ->setCssClass(static::CSS_CLASS_LIMITER)
->setHeading(t('Limiter')); ->setHeading(t('Limiter'))
return $navigationRenderer->render(); ->render();
} }
} }