From e9378d802c4023d4104bd4fd683c3e5aa64b89b8 Mon Sep 17 00:00:00 2001 From: Max P Date: Sun, 3 Dec 2023 15:30:27 +0100 Subject: [PATCH] Small change in the onPageRendering function to make it compatible with the Pico:pico-3.0 branch --- TableOfContents.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TableOfContents.php b/TableOfContents.php index 1fc5f2c..77dbacb 100644 --- a/TableOfContents.php +++ b/TableOfContents.php @@ -182,7 +182,7 @@ public function onContentParsed(&$content) */ public function onPageRendering(&$templateName, array &$twigVariables) { - $twigVariables['toc'] = new Twig_Markup($this->toc_element_xml, 'UTF-8'); + $twigVariables['toc'] = new \Twig\Markup($this->toc_element_xml, 'UTF-8'); } /* ********************************************************************************* */