From e43d8732d40eecc7f709cdda048ffb6e388710db Mon Sep 17 00:00:00 2001 From: Oleg Pudeyev Date: Sun, 10 Jul 2011 03:45:57 -0400 Subject: [PATCH] [feature/template-engine] Add ampersands to return refs by reference. PHPBB3-9726 --- phpBB/includes/template/context.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/includes/template/context.php b/phpBB/includes/template/context.php index 169add036e..71d82880fe 100644 --- a/phpBB/includes/template/context.php +++ b/phpBB/includes/template/context.php @@ -73,7 +73,7 @@ class phpbb_template_context * * @return array template data */ - public function get_data_ref() + public function &get_data_ref() { // returning a reference directly is not // something php is capable of doing @@ -91,7 +91,7 @@ class phpbb_template_context * * @return array template data */ - public function get_root_ref() + public function &get_root_ref() { // rootref is already a reference return $this->rootref;