Skip to content

Commit

Permalink
[BUGFIX] Replace call to superfluous method with service call (FluidT…
Browse files Browse the repository at this point in the history
  • Loading branch information
tiggr authored and cedricziel committed Sep 20, 2016
1 parent d60c19a commit 7fcc992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/Menu/SubViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function render()
// that is being rendered is in fact the current page but is NOT part of the rootline of the menu being
// rendered - which is expected for example if using a page setting to render a different page in menus.
// This means that the following check although it appears redundant, it is in fact not.
$isCurrent = $this->isCurrent($pageUid);
$isCurrent = $this->pageService->isCurrent($pageUid);
$isExpanded = (boolean) (true === (boolean) $parentArguments['expandAll']);
$shouldRender = (boolean) (true === $isActive || true === $isCurrent || true === $isExpanded);
if (false === $shouldRender) {
Expand Down

0 comments on commit 7fcc992

Please sign in to comment.