r48125 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48124‎ | r48125 | r48126 >
Date:13:13, 7 March 2009
Author:catrope
Status:deferred
Tags:
Comment:
Followup to r48122: missed one
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryRevisions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryRevisions.php
@@ -212,7 +212,7 @@
213213 $this->validateLimit('limit', $limit, 1, $userMax, $botMax);
214214
215215 // There is only one ID, use it
216 - $this->addWhereFld('rev_page', current(array_keys($pageSet->getGoodTitles())));
 216+ $this->addWhereFld('rev_page', reset(array_keys($pageSet->getGoodTitles())));
217217
218218 if(!is_null($params['user'])) {
219219 $this->addWhereFld('rev_user_text', $params['user']);

Follow-up revisions

RevisionCommit summaryAuthorDate
r48126Backporting r48125 to 1.14 branchcatrope13:13, 7 March 2009
r48127Backporting r48125 to 1.13 branchcatrope13:14, 7 March 2009
r48128Backport r48122 and r48125 to 1.12 branch and kill another current() that was...catrope13:15, 7 March 2009

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r48122* API: (bug 17832) action=delete returns 'unknownerror' instead of 'permissio...catrope12:58, 7 March 2009

Status & tagging log