Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-Authored-By: Nicolas Liautaud <[email protected]>
  • Loading branch information
Matschundbrei and nliautaud authored May 9, 2019
1 parent acac004 commit 6a47b58
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions PicoPagesList.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ protected function onCurrentPageDiscovered(
/**
* Register `$this` in the Twig `{{ PagesList }}` variable.
*
* Triggered before Pico renders the page
*
* @see Pico::getTwig()
* @param Twig_Environment &$twig Twig instance
Expand Down Expand Up @@ -105,7 +104,6 @@ public function onTwigRegistered(Twig_Environment &$twig)

public function onPageRendering(string &$templateName, array &$twigVariables)
{
$twig = $this->getPico()->getTwig();
$twigVariables['nested_pages'] = $this->items;
}

Expand Down

0 comments on commit 6a47b58

Please sign in to comment.