aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/template
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-12-27 13:31:01 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-12-27 13:31:01 +0100
commit5b1c9831c2527220c1b496fe9b3c157ca1a41ccb (patch)
tree543c074de5fed098428630f0c483e47f8232c633 /phpBB/phpbb/template
parenta66e4770c167744bacd1261bbb60b2f5181fd212 (diff)
parent4522db76247b1a4f81a11869e06a7bfc0e64bc5e (diff)
downloadforums-5b1c9831c2527220c1b496fe9b3c157ca1a41ccb.tar
forums-5b1c9831c2527220c1b496fe9b3c157ca1a41ccb.tar.gz
forums-5b1c9831c2527220c1b496fe9b3c157ca1a41ccb.tar.bz2
forums-5b1c9831c2527220c1b496fe9b3c157ca1a41ccb.tar.xz
forums-5b1c9831c2527220c1b496fe9b3c157ca1a41ccb.zip
Merge pull request #3099 from Senky/ticket/13266
[ticket/13266] Enabling twig dump function if DEBUG is defined
Diffstat (limited to 'phpBB/phpbb/template')
-rw-r--r--phpBB/phpbb/template/twig/twig.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/phpbb/template/twig/twig.php b/phpBB/phpbb/template/twig/twig.php
index 5b71bb5e8a..db3a8e3571 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);