From 4522db76247b1a4f81a11869e06a7bfc0e64bc5e Mon Sep 17 00:00:00 2001 From: Jakub Senko Date: Sat, 1 Nov 2014 12:31:58 +0100 Subject: [PATCH] [ticket/13266] Enable twig dump function PHPBB3-13266 --- phpBB/phpbb/template/twig/twig.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpBB/phpbb/template/twig/twig.php b/phpBB/phpbb/template/twig/twig.php index a3b002f350..4d9ca44007 100644 --- a/phpBB/phpbb/template/twig/twig.php +++ b/phpBB/phpbb/template/twig/twig.php @@ -115,6 +115,11 @@ class twig extends \phpbb\template\base ) ); + if (defined('DEBUG')) + { + $this->twig->addExtension(new \Twig_Extension_Debug()); + } + $lexer = new \phpbb\template\twig\lexer($this->twig); $this->twig->setLexer($lexer);