From: Sam Reed Date: Thu, 24 Mar 2011 11:11:15 +0000 (+0000) Subject: Don't pass $this by reference X-Git-Tag: 1.31.0-rc.0~31212 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=e82ca13996c703effe003e8edb0bc5e447b6d43c;p=lhc%2Fweb%2Fwiklou.git Don't pass $this by reference --- 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 ); }