r48127 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48126‎ | r48127 | r48128 >
Date:13:14, 7 March 2009
Author:catrope
Status:deferred
Tags:
Comment:
Backporting r48125 to 1.13 branch
Modified paths:
  • /branches/REL1_13/phase3/includes/api/ApiQueryRevisions.php (modified) (history)

Diff [purge]

Index: branches/REL1_13/phase3/includes/api/ApiQueryRevisions.php
@@ -180,7 +180,7 @@
181181 $this->validateLimit('limit', $limit, 1, $userMax, $botMax);
182182
183183 // There is only one ID, use it
184 - $this->addWhereFld('rev_page', current(array_keys($pageSet->getGoodTitles())));
 184+ $this->addWhereFld('rev_page', reset(array_keys($pageSet->getGoodTitles())));
185185
186186 if(!is_null($user)) {
187187 $this->addWhereFld('rev_user_text', $user);

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r48125Followup to r48122: missed onecatrope13:13, 7 March 2009

Status & tagging log