1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 08:47:45 +02:00

[ticket/13266] Enable twig dump function

PHPBB3-13266
This commit is contained in:
Jakub Senko
2014-11-01 12:31:58 +01:00
parent 17928563a2
commit 4522db7624

View File

@@ -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); $lexer = new \phpbb\template\twig\lexer($this->twig);
$this->twig->setLexer($lexer); $this->twig->setLexer($lexer);