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'); } /* ********************************************************************************* */