[feature/twig] Don't forget to set the context when rendering!

PHPBB3-11598
This commit is contained in:
Nathaniel Guse 2013-07-01 21:16:36 -05:00
parent 1c7e077fea
commit 8f303b376b

View file

@ -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())));