Revision: 48127
Author:   catrope
Date:     2009-03-07 13:14:08 +0000 (Sat, 07 Mar 2009)

Log Message:
-----------
Backporting r48125 to 1.13 branch

Modified Paths:
--------------
    branches/REL1_13/phase3/includes/api/ApiQueryRevisions.php

Modified: branches/REL1_13/phase3/includes/api/ApiQueryRevisions.php
===================================================================
--- branches/REL1_13/phase3/includes/api/ApiQueryRevisions.php  2009-03-07 
13:13:45 UTC (rev 48126)
+++ branches/REL1_13/phase3/includes/api/ApiQueryRevisions.php  2009-03-07 
13:14:08 UTC (rev 48127)
@@ -180,7 +180,7 @@
                        $this->validateLimit('limit', $limit, 1, $userMax, 
$botMax);
 
                        // There is only one ID, use it
-                       $this->addWhereFld('rev_page', 
current(array_keys($pageSet->getGoodTitles())));
+                       $this->addWhereFld('rev_page', 
reset(array_keys($pageSet->getGoodTitles())));
 
                        if(!is_null($user)) {
                                $this->addWhereFld('rev_user_text', $user);



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to