mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 12:03:21 +01:00
[feature/twig] Remove debug code, set debug/auto reload correctly
PHPBB3-11598
This commit is contained in:
parent
bdc05b7dc8
commit
793ee3f8d9
@ -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…
x
Reference in New Issue
Block a user