aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/template/context.php
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2011-05-11 09:12:52 -0400
committerOleg Pudeyev <oleg@bsdpower.com>2011-05-12 20:13:31 -0400
commit635460fa6dda70be8ae8b36c4c4be012c9c0a590 (patch)
tree09ef439ec6b37dee8caa2eab178923a39bdedead /phpBB/includes/template/context.php
parent169c4377e98826432411db773ebcbfa19bcdb439 (diff)
downloadforums-635460fa6dda70be8ae8b36c4c4be012c9c0a590.tar
forums-635460fa6dda70be8ae8b36c4c4be012c9c0a590.tar.gz
forums-635460fa6dda70be8ae8b36c4c4be012c9c0a590.tar.bz2
forums-635460fa6dda70be8ae8b36c4c4be012c9c0a590.tar.xz
forums-635460fa6dda70be8ae8b36c4c4be012c9c0a590.zip
[feature/template-engine] Fixed reference usage.
Hopefully this is right, I have not checked it against the manual (assuming the manual even covers these things). PHPBB3-9726
Diffstat (limited to 'phpBB/includes/template/context.php')
-rw-r--r--phpBB/includes/template/context.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/phpBB/includes/template/context.php b/phpBB/includes/template/context.php
index c667282f7b..695f6e0ed3 100644
--- a/phpBB/includes/template/context.php
+++ b/phpBB/includes/template/context.php
@@ -68,11 +68,15 @@ class phpbb_template_context
public function get_data_ref()
{
- return $this->tpldata;
+ // returning a reference directly is not
+ // something php is capable of doing
+ $ref = &$this->tpldata;
+ return $ref;
}
public function get_root_ref()
{
+ // rootref is already a reference
return $this->rootref;
}