mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-24 16:21:20 +02:00
[feature/twig] Do not assign var by reference
PHPBB3-11598
This commit is contained in:
parent
87e4e05220
commit
46d6899b46
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user