diff options
| author | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-07-01 20:41:36 -0500 |
|---|---|---|
| committer | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-07-01 20:41:36 -0500 |
| commit | 46d6899b466ce57e605ee6cf708204a1dd92004f (patch) | |
| tree | 1c57b29d17cece85ccf7286b472f8e06e946f4ff /phpBB/includes | |
| parent | 87e4e05220159546bb5414a435fe029295b3ea01 (diff) | |
| download | forums-46d6899b466ce57e605ee6cf708204a1dd92004f.tar forums-46d6899b466ce57e605ee6cf708204a1dd92004f.tar.gz forums-46d6899b466ce57e605ee6cf708204a1dd92004f.tar.bz2 forums-46d6899b466ce57e605ee6cf708204a1dd92004f.tar.xz forums-46d6899b466ce57e605ee6cf708204a1dd92004f.zip | |
[feature/twig] Do not assign var by reference
PHPBB3-11598
Diffstat (limited to 'phpBB/includes')
| -rw-r--r-- | phpBB/includes/template/twig/twig.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/phpBB/includes/template/twig/twig.php b/phpBB/includes/template/twig/twig.php index 3cd37e04e9..89f6189f41 100644 --- a/phpBB/includes/template/twig/twig.php +++ b/phpBB/includes/template/twig/twig.php @@ -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; } |
