mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[feature/twig] Remove debug code, set debug/auto reload correctly
PHPBB3-11598
This commit is contained in:
@@ -120,16 +120,12 @@ class phpbb_template_twig implements phpbb_template
|
|||||||
$loader,
|
$loader,
|
||||||
array(
|
array(
|
||||||
'cache' => $this->cachepath,
|
'cache' => $this->cachepath,
|
||||||
'debug' => true, // @todo
|
'debug' => defined('DEBUG'),
|
||||||
'auto_reload' => true, // @todo
|
'auto_reload' => (bool) $this->config['load_tplcompile'],
|
||||||
'autoescape' => false,
|
'autoescape' => false,
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Clear previous cache files (while WIP)
|
|
||||||
// @todo remove
|
|
||||||
$this->clear_cache();
|
|
||||||
|
|
||||||
$this->twig->addExtension(
|
$this->twig->addExtension(
|
||||||
new phpbb_template_twig_extension(
|
new phpbb_template_twig_extension(
|
||||||
$this->user
|
$this->user
|
||||||
|
Reference in New Issue
Block a user