(bug 13819) API: exturlusage paging skipped an item
authorRoan Kattouw <catrope@users.mediawiki.org>
Tue, 22 Apr 2008 12:46:00 +0000 (12:46 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Tue, 22 Apr 2008 12:46:00 +0000 (12:46 +0000)
RELEASE-NOTES
includes/api/ApiQueryExtLinksUsage.php

index e6081ee..d4d99e3 100644 (file)
@@ -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 ===
 
index ccb1bff..5d9fd45 100644 (file)
@@ -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;
                        }