http://www.mediawiki.org/wiki/Special:Code/MediaWiki/84671
Revision: 84671
Author: reedy
Date: 2011-03-24 11:11:15 +0000 (Thu, 24 Mar 2011)
Log Message:
-----------
Don't pass $this by reference
Modified Paths:
--------------
trunk/phase3/docs/hooks.txt
trunk/phase3/includes/api/ApiQuerySiteinfo.php
Modified: trunk/phase3/docs/hooks.txt
===================================================================
--- trunk/phase3/docs/hooks.txt 2011-03-24 10:39:25 UTC (rev 84670)
+++ trunk/phase3/docs/hooks.txt 2011-03-24 11:11:15 UTC (rev 84671)
@@ -356,7 +356,7 @@
'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.
Modified: trunk/phase3/includes/api/ApiQuerySiteinfo.php
===================================================================
--- trunk/phase3/includes/api/ApiQuerySiteinfo.php 2011-03-24 10:39:25 UTC
(rev 84670)
+++ trunk/phase3/includes/api/ApiQuerySiteinfo.php 2011-03-24 11:11:15 UTC
(rev 84671)
@@ -160,7 +160,7 @@
$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
);
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs