aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/template/twig/twig.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/phpBB/includes/template/twig/twig.php b/phpBB/includes/template/twig/twig.php
index 3cd37e04e9..89f6189f41 100644
--- a/phpBB/includes/template/twig/twig.php
+++ b/phpBB/includes/template/twig/twig.php
@@ -265,8 +265,7 @@ class phpbb_template_twig implements phpbb_template
return $result[0];
}
- $context = &$this->get_template_vars();
- $this->twig->display($this->get_filename_from_handle($handle), $context);
+ $this->twig->display($this->get_filename_from_handle($handle), $this->get_template_vars());
return true;
}
@@ -329,7 +328,7 @@ class phpbb_template_twig implements phpbb_template
return $this->twig->render($this->get_filename_from_handle($handle));
}
- $this->assign_var($template_var, $this->twig->render($this->get_filename_from_handle($handle)));
+ $this->assign_var($template_var, $this->twig->render($this->get_filename_from_handle($handle, $this->get_template_vars())));
return true;
}