diff options
author | Jakub Senko <jakubsenko@gmail.com> | 2014-11-01 12:31:58 +0100 |
---|---|---|
committer | Jakub Senko <jakubsenko@gmail.com> | 2014-11-01 12:31:58 +0100 |
commit | 4522db76247b1a4f81a11869e06a7bfc0e64bc5e (patch) | |
tree | ee8b5c73726c4a8678efe89184d6c06c7339de1e /phpBB/phpbb/template | |
parent | 17928563a2a265f4b70feef64e5030ea3c602269 (diff) | |
download | forums-4522db76247b1a4f81a11869e06a7bfc0e64bc5e.tar forums-4522db76247b1a4f81a11869e06a7bfc0e64bc5e.tar.gz forums-4522db76247b1a4f81a11869e06a7bfc0e64bc5e.tar.bz2 forums-4522db76247b1a4f81a11869e06a7bfc0e64bc5e.tar.xz forums-4522db76247b1a4f81a11869e06a7bfc0e64bc5e.zip |
[ticket/13266] Enable twig dump function
PHPBB3-13266
Diffstat (limited to 'phpBB/phpbb/template')
-rw-r--r-- | phpBB/phpbb/template/twig/twig.php | 5 |
1 files changed, 5 insertions, 0 deletions
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); |