mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-07 02:13:47 +02:00
[feature/template-engine] Add ampersands to return refs by reference.
PHPBB3-9726
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user