(bug 11534) rvendid doesn't work
authorRoan Kattouw <catrope@users.mediawiki.org>
Tue, 2 Oct 2007 15:30:39 +0000 (15:30 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Tue, 2 Oct 2007 15:30:39 +0000 (15:30 +0000)
RELEASE-NOTES
includes/api/ApiQueryRevisions.php

index c2e0f30..390d41e 100644 (file)
@@ -95,6 +95,7 @@ Full API documentation is available at http://www.mediawiki.org/wiki/API
 * (bug 11218) Add option to feedwatchlist to display multiple revisions for each page.
 * (bug 11404) Provide name of exception caught in error code field of internal api 
   error messages.
+* (bug 11534) rvendid doesn't work
 
 === Languages updated in 1.12 ===
 
index b8af8ca..e31f443 100644 (file)
@@ -53,6 +53,7 @@ class ApiQueryRevisions extends ApiQueryBase {
                // Enumerating revisions on multiple pages make it extremelly 
                // difficult to manage continuations and require additional sql indexes  
                $enumRevMode = (!is_null($user) || !is_null($excludeuser) || !is_null($limit) || !is_null($startid) || !is_null($endid) || $dir === 'newer' || !is_null($start) || !is_null($end));
+               
 
                $pageSet = $this->getPageSet();
                $pageCount = $pageSet->getGoodTitleCount();
@@ -133,7 +134,7 @@ class ApiQueryRevisions extends ApiQueryBase {
                        // one row with the same timestamp for the same page. 
                        // The order needs to be the same as start parameter to avoid SQL filesort.
 
-                       if (is_null($startid))
+                       if (is_null($startid) && is_null($endid))
                                $this->addWhereRange('rev_timestamp', $dir, $start, $end);
                        else
                                $this->addWhereRange('rev_id', $dir, $startid, $endid);