From c41d9ddc9fa2dfe5243aa9b8e5089fa216c9ee03 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 2 Oct 2007 15:30:39 +0000 Subject: [PATCH] (bug 11534) rvendid doesn't work --- RELEASE-NOTES | 1 + includes/api/ApiQueryRevisions.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index c2e0f30949..390d41eb47 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/api/ApiQueryRevisions.php b/includes/api/ApiQueryRevisions.php index b8af8cae32..e31f4436ba 100644 --- a/includes/api/ApiQueryRevisions.php +++ b/includes/api/ApiQueryRevisions.php @@ -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); -- 2.20.1