r48126 MediaWiki - Code Review archive

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

Diff [purge]

Index: branches/REL1_14/phase3/includes/api/ApiQueryRevisions.php
@@ -186,7 +186,7 @@
187187 $this->validateLimit('limit', $limit, 1, $userMax, $botMax);
188188
189189 // There is only one ID, use it
190 - $this->addWhereFld('rev_page', current(array_keys($pageSet->getGoodTitles())));
 190+ $this->addWhereFld('rev_page', reset(array_keys($pageSet->getGoodTitles())));
191191
192192 if(!is_null($params['user'])) {
193193 $this->addWhereFld('rev_user_text', $params['user']);

Past revisions this follows-up on

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

Status & tagging log