Index: trunk/phase3/includes/api/ApiQueryRecentChanges.php |
— | — | @@ -114,7 +114,7 @@ |
115 | 115 | */ |
116 | 116 | $db = $this->getDB(); |
117 | 117 | $this->addTables( 'recentchanges' ); |
118 | | - $index['recentchanges'] = 'rc_timestamp'; // May change |
| 118 | + $index = array( 'recentchanges' => 'rc_timestamp' ); // May change |
119 | 119 | $this->addWhereRange( 'rc_timestamp', $params['dir'], $params['start'], $params['end'] ); |
120 | 120 | $this->addWhereFld( 'rc_namespace', $params['namespace'] ); |
121 | 121 | $this->addWhereFld( 'rc_deleted', 0 ); |
Index: trunk/phase3/includes/api/ApiQueryLogEvents.php |
— | — | @@ -70,7 +70,7 @@ |
71 | 71 | 'page' => array( 'LEFT JOIN', |
72 | 72 | array( 'log_namespace=page_namespace', |
73 | 73 | 'log_title=page_title' ) ) ) ); |
74 | | - $index['logging'] = 'times'; // default, may change |
| 74 | + $index = array( 'logging' => 'times' ); // default, may change |
75 | 75 | |
76 | 76 | $this->addFields( array ( |
77 | 77 | 'log_type', |
Index: trunk/phase3/includes/api/ApiQueryUserContributions.php |
— | — | @@ -193,7 +193,7 @@ |
194 | 194 | $this->addWhereIf( 'rc_patrolled != 0', isset( $show['patrolled'] ) ); |
195 | 195 | } |
196 | 196 | $this->addOption( 'LIMIT', $this->params['limit'] + 1 ); |
197 | | - $index['revision'] = 'usertext_timestamp'; |
| 197 | + $index = array( 'revision' => 'usertext_timestamp' ); |
198 | 198 | |
199 | 199 | // Mandatory fields: timestamp allows request continuation |
200 | 200 | // ns+title checks if the user has access rights for this page |