mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 13:48:55 +00:00
[feature/twig] Don't forget to set the context when rendering!
PHPBB3-11598
This commit is contained in:
parent
1c7e077fea
commit
8f303b376b
1 changed files with 1 additions and 1 deletions
|
@ -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())));
|
||||
|
|
Loading…
Add table
Reference in a new issue