Don't pass $this by reference
authorSam Reed <reedy@users.mediawiki.org>
Thu, 24 Mar 2011 11:11:15 +0000 (11:11 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 24 Mar 2011 11:11:15 +0000 (11:11 +0000)
docs/hooks.txt
includes/api/ApiQuerySiteinfo.php

index 9f96607..dc0d8c2 100644 (file)
@@ -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.
index 06e1a71..bfc8e12 100644 (file)
@@ -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 );
        }