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; }