From 6a47b5877c5196ef4a91b03dbb3cf80774162719 Mon Sep 17 00:00:00 2001 From: Matschundbrei Date: Thu, 9 May 2019 23:24:33 +0200 Subject: [PATCH] Apply suggestions from code review Co-Authored-By: Nicolas Liautaud --- PicoPagesList.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/PicoPagesList.php b/PicoPagesList.php index 0a36a43..eed9c5d 100644 --- a/PicoPagesList.php +++ b/PicoPagesList.php @@ -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 @@ -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; }