mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/13266] Enable twig dump function
PHPBB3-13266
This commit is contained in:
parent
17928563a2
commit
4522db7624
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue