mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[feature/twig] Don't forget to set the context when rendering!
PHPBB3-11598
This commit is contained in:
@@ -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())));
|
||||
|
Reference in New Issue
Block a user