From e82ca13996c703effe003e8edb0bc5e447b6d43c Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Thu, 24 Mar 2011 11:11:15 +0000 Subject: [PATCH] Don't pass $this by reference --- docs/hooks.txt | 2 +- includes/api/ApiQuerySiteinfo.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/hooks.txt b/docs/hooks.txt index 9f96607a5a..dc0d8c2fac 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -356,7 +356,7 @@ $tokenFunctions: array(action => callback) 'APIQuerySiteInfoGeneralInfo': use this hook to add extra information to the sites general information. -&$module: the current ApiQuerySiteInfo module +$module: the current ApiQuerySiteInfo module &$results: array of results, add things here 'APIQueryUsersTokens': use this hook to add custom token to list=users. diff --git a/includes/api/ApiQuerySiteinfo.php b/includes/api/ApiQuerySiteinfo.php index 06e1a71ca3..bfc8e122cc 100644 --- a/includes/api/ApiQuerySiteinfo.php +++ b/includes/api/ApiQuerySiteinfo.php @@ -160,7 +160,7 @@ class ApiQuerySiteinfo extends ApiQueryBase { $data['wikiid'] = wfWikiID(); $data['time'] = wfTimestamp( TS_ISO_8601, time() ); - wfRunHooks( 'APIQuerySiteInfoGeneralInfo', array( &$this, &$data ) ); + wfRunHooks( 'APIQuerySiteInfoGeneralInfo', array( $this, &$data ) ); return $this->getResult()->addValue( 'query', $property, $data ); } -- 2.20.1