Skip to content

Commit

Permalink
lib: Fix navigation renderer usage in the limiter widget
Browse files Browse the repository at this point in the history
refs #5543
  • Loading branch information
lippserd committed Sep 27, 2015
1 parent a9f0aa6 commit 9789aed
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions library/Icinga/Web/Widget/Limiter.php
Expand Up @@ -5,7 +5,6 @@

use Icinga\Web\Navigation\Navigation;
use Icinga\Web\Navigation\NavigationItem;
use Icinga\Web\Navigation\NavigationRenderer;
use Icinga\Web\Url;

/**
Expand Down Expand Up @@ -102,10 +101,10 @@ public function render()
->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();
}
}

0 comments on commit 9789aed

Please sign in to comment.