1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-25 16:49:58 +02:00

[feature/twig] Do not assign var by reference

PHPBB3-11598
This commit is contained in:
Nathaniel Guse 2013-07-01 20:41:36 -05:00
parent 87e4e05220
commit 46d6899b46

View File

@ -265,8 +265,7 @@ class phpbb_template_twig implements phpbb_template
return $result[0]; return $result[0];
} }
$context = &$this->get_template_vars(); $this->twig->display($this->get_filename_from_handle($handle), $this->get_template_vars());
$this->twig->display($this->get_filename_from_handle($handle), $context);
return true; return true;
} }
@ -329,7 +328,7 @@ class phpbb_template_twig implements phpbb_template
return $this->twig->render($this->get_filename_from_handle($handle)); 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; return true;
} }