aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorNathaniel Guse <nathaniel.guse@gmail.com>2013-07-01 21:16:36 -0500
committerNathaniel Guse <nathaniel.guse@gmail.com>2013-07-01 21:16:36 -0500
commit8f303b376b5677bb0203c6ffae9c8c456cf1e075 (patch)
tree4ccf75c838bc9ca063e6a547b043de1fe9a71246 /phpBB/includes
parent1c7e077fea245448315068bc724d852d2c9b087e (diff)
downloadforums-8f303b376b5677bb0203c6ffae9c8c456cf1e075.tar
forums-8f303b376b5677bb0203c6ffae9c8c456cf1e075.tar.gz
forums-8f303b376b5677bb0203c6ffae9c8c456cf1e075.tar.bz2
forums-8f303b376b5677bb0203c6ffae9c8c456cf1e075.tar.xz
forums-8f303b376b5677bb0203c6ffae9c8c456cf1e075.zip
[feature/twig] Don't forget to set the context when rendering!
PHPBB3-11598
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/template/twig/twig.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/template/twig/twig.php b/phpBB/includes/template/twig/twig.php
index 496c0b21a8..6b0771f77b 100644
--- a/phpBB/includes/template/twig/twig.php
+++ b/phpBB/includes/template/twig/twig.php
@@ -305,7 +305,7 @@ class phpbb_template_twig implements phpbb_template
{
if ($return_content)
{
- return $this->twig->render($this->get_filename_from_handle($handle));
+ return $this->twig->render($this->get_filename_from_handle($handle), $this->get_template_vars());
}
$this->assign_var($template_var, $this->twig->render($this->get_filename_from_handle($handle, $this->get_template_vars())));