http://www.mediawiki.org/wiki/Special:Code/MediaWiki/62011
Revision: 62011 Author: tstarling Date: 2010-02-05 04:40:57 +0000 (Fri, 05 Feb 2010) Log Message: ----------- Fix for r61957: initialise array variables explicitly. Modified Paths: -------------- trunk/phase3/includes/api/ApiQueryLogEvents.php trunk/phase3/includes/api/ApiQueryRecentChanges.php trunk/phase3/includes/api/ApiQueryUserContributions.php Modified: trunk/phase3/includes/api/ApiQueryLogEvents.php =================================================================== --- trunk/phase3/includes/api/ApiQueryLogEvents.php 2010-02-05 04:37:53 UTC (rev 62010) +++ trunk/phase3/includes/api/ApiQueryLogEvents.php 2010-02-05 04:40:57 UTC (rev 62011) @@ -70,7 +70,7 @@ 'page' => array( 'LEFT JOIN', array( 'log_namespace=page_namespace', 'log_title=page_title' ) ) ) ); - $index['logging'] = 'times'; // default, may change + $index = array( 'logging' => 'times' ); // default, may change $this->addFields( array ( 'log_type', Modified: trunk/phase3/includes/api/ApiQueryRecentChanges.php =================================================================== --- trunk/phase3/includes/api/ApiQueryRecentChanges.php 2010-02-05 04:37:53 UTC (rev 62010) +++ trunk/phase3/includes/api/ApiQueryRecentChanges.php 2010-02-05 04:40:57 UTC (rev 62011) @@ -114,7 +114,7 @@ */ $db = $this->getDB(); $this->addTables( 'recentchanges' ); - $index['recentchanges'] = 'rc_timestamp'; // May change + $index = array( 'recentchanges' => 'rc_timestamp' ); // May change $this->addWhereRange( 'rc_timestamp', $params['dir'], $params['start'], $params['end'] ); $this->addWhereFld( 'rc_namespace', $params['namespace'] ); $this->addWhereFld( 'rc_deleted', 0 ); Modified: trunk/phase3/includes/api/ApiQueryUserContributions.php =================================================================== --- trunk/phase3/includes/api/ApiQueryUserContributions.php 2010-02-05 04:37:53 UTC (rev 62010) +++ trunk/phase3/includes/api/ApiQueryUserContributions.php 2010-02-05 04:40:57 UTC (rev 62011) @@ -193,7 +193,7 @@ $this->addWhereIf( 'rc_patrolled != 0', isset( $show['patrolled'] ) ); } $this->addOption( 'LIMIT', $this->params['limit'] + 1 ); - $index['revision'] = 'usertext_timestamp'; + $index = array( 'revision' => 'usertext_timestamp' ); // Mandatory fields: timestamp allows request continuation // ns+title checks if the user has access rights for this page _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs