mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 06:18:52 +00:00
[ticket/17100] Revert not needed twig changes
PHPBB3-17100
This commit is contained in:
parent
4b17de74a4
commit
11eeeae150
2 changed files with 1 additions and 2 deletions
|
@ -75,7 +75,7 @@ class environment extends \Twig\Environment
|
||||||
|
|
||||||
$options = array_merge(array(
|
$options = array_merge(array(
|
||||||
'cache' => (defined('IN_INSTALL')) ? false : $cache_path,
|
'cache' => (defined('IN_INSTALL')) ? false : $cache_path,
|
||||||
'debug' => true,
|
'debug' => false,
|
||||||
'auto_reload' => (bool) $this->phpbb_config['load_tplcompile'],
|
'auto_reload' => (bool) $this->phpbb_config['load_tplcompile'],
|
||||||
'autoescape' => false,
|
'autoescape' => false,
|
||||||
), $options);
|
), $options);
|
||||||
|
|
|
@ -90,7 +90,6 @@ class twig extends \phpbb\template\base
|
||||||
{
|
{
|
||||||
$this->twig->addExtension($extension);
|
$this->twig->addExtension($extension);
|
||||||
}
|
}
|
||||||
$this->twig->addExtension(new \Twig\Extension\DebugExtension());
|
|
||||||
|
|
||||||
// Add admin namespace
|
// Add admin namespace
|
||||||
if ($this->path_helper->get_adm_relative_path() !== null
|
if ($this->path_helper->get_adm_relative_path() !== null
|
||||||
|
|
Loading…
Add table
Reference in a new issue