From d4c9c438fd70cb56fb6b8515ca1b9be377cd3c98 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 22 Apr 2008 12:46:00 +0000 Subject: [PATCH] (bug 13819) API: exturlusage paging skipped an item --- RELEASE-NOTES | 1 + includes/api/ApiQueryExtLinksUsage.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index e6081eec3e..d4d99e39f2 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -257,6 +257,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 13718) Return the proper continue parameter for cmsort=timestamp * action=login now returns the correct waiting time in the details property * (bug 13792) Broken titles are now silently skipped in search results. +* (bug 13819) exturlusage paging skipped an item === Languages updated in 1.13 === diff --git a/includes/api/ApiQueryExtLinksUsage.php b/includes/api/ApiQueryExtLinksUsage.php index ccb1bffc91..5d9fd45bd2 100644 --- a/includes/api/ApiQueryExtLinksUsage.php +++ b/includes/api/ApiQueryExtLinksUsage.php @@ -108,7 +108,7 @@ class ApiQueryExtLinksUsage extends ApiQueryGeneratorBase { while ($row = $db->fetchObject($res)) { if (++ $count > $limit) { // We've reached the one extra which shows that there are additional pages to be had. Stop here... - $this->setContinueEnumParameter('offset', $offset+$limit+1); + $this->setContinueEnumParameter('offset', $offset+$limit); break; } -- 2.20.1