mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 12:03:21 +01:00
Merge pull request #3099 from Senky/ticket/13266
[ticket/13266] Enabling twig dump function if DEBUG is defined
This commit is contained in:
commit
5b1c9831c2
@ -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…
x
Reference in New Issue
Block a user