From 11eeeae1508e6d53d68958badbf7ea9ed844d7c3 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sat, 29 Apr 2023 13:54:52 +0200 Subject: [PATCH] [ticket/17100] Revert not needed twig changes PHPBB3-17100 --- phpBB/phpbb/template/twig/environment.php | 2 +- phpBB/phpbb/template/twig/twig.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/phpBB/phpbb/template/twig/environment.php b/phpBB/phpbb/template/twig/environment.php index 86c04195de..5843cc0762 100644 --- a/phpBB/phpbb/template/twig/environment.php +++ b/phpBB/phpbb/template/twig/environment.php @@ -75,7 +75,7 @@ class environment extends \Twig\Environment $options = array_merge(array( 'cache' => (defined('IN_INSTALL')) ? false : $cache_path, - 'debug' => true, + 'debug' => false, 'auto_reload' => (bool) $this->phpbb_config['load_tplcompile'], 'autoescape' => false, ), $options); diff --git a/phpBB/phpbb/template/twig/twig.php b/phpBB/phpbb/template/twig/twig.php index 14dd5734ce..1259618175 100644 --- a/phpBB/phpbb/template/twig/twig.php +++ b/phpBB/phpbb/template/twig/twig.php @@ -90,7 +90,6 @@ class twig extends \phpbb\template\base { $this->twig->addExtension($extension); } - $this->twig->addExtension(new \Twig\Extension\DebugExtension()); // Add admin namespace if ($this->path_helper->get_adm_relative_path() !== null