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\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();
}
}