aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/template
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/template')
-rw-r--r--phpBB/includes/template/twig/node/php.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/includes/template/twig/node/php.php b/phpBB/includes/template/twig/node/php.php
index 83481b1d69..953cd184a7 100644
--- a/phpBB/includes/template/twig/node/php.php
+++ b/phpBB/includes/template/twig/node/php.php
@@ -28,6 +28,8 @@ class phpbb_template_twig_node_php extends Twig_Node
{
$compiler->addDebugInfo($this);
+ $config = $this->environment->get_phpbb_config();
+
if (!$config['tpl_allow_php'])
{
$compiler