mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[feature/twig] Remove debug code, set debug/auto reload correctly
PHPBB3-11598
This commit is contained in:
parent
bdc05b7dc8
commit
793ee3f8d9
1 changed files with 2 additions and 6 deletions
|
@ -120,16 +120,12 @@ class phpbb_template_twig implements phpbb_template
|
|||
$loader,
|
||||
array(
|
||||
'cache' => $this->cachepath,
|
||||
'debug' => true, // @todo
|
||||
'auto_reload' => true, // @todo
|
||||
'debug' => defined('DEBUG'),
|
||||
'auto_reload' => (bool) $this->config['load_tplcompile'],
|
||||
'autoescape' => false,
|
||||
)
|
||||
);
|
||||
|
||||
// Clear previous cache files (while WIP)
|
||||
// @todo remove
|
||||
$this->clear_cache();
|
||||
|
||||
$this->twig->addExtension(
|
||||
new phpbb_template_twig_extension(
|
||||
$this->user
|
||||
|
|
Loading…
Add table
Reference in a new issue