mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-09 04:48:53 +00:00
[feature/template-engine] Add ampersands to return refs by reference.
PHPBB3-9726
This commit is contained in:
parent
66cef00589
commit
e43d8732d4
1 changed files with 2 additions and 2 deletions
|
@ -73,7 +73,7 @@ class phpbb_template_context
|
||||||
*
|
*
|
||||||
* @return array template data
|
* @return array template data
|
||||||
*/
|
*/
|
||||||
public function get_data_ref()
|
public function &get_data_ref()
|
||||||
{
|
{
|
||||||
// returning a reference directly is not
|
// returning a reference directly is not
|
||||||
// something php is capable of doing
|
// something php is capable of doing
|
||||||
|
@ -91,7 +91,7 @@ class phpbb_template_context
|
||||||
*
|
*
|
||||||
* @return array template data
|
* @return array template data
|
||||||
*/
|
*/
|
||||||
public function get_root_ref()
|
public function &get_root_ref()
|
||||||
{
|
{
|
||||||
// rootref is already a reference
|
// rootref is already a reference
|
||||||
return $this->rootref;
|
return $this->rootref;
|
||||||
|
|
Loading…
Add table
Reference in a new issue