mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user