Fix #8239 : really get the 50 next contribs
authorAntoine Musso <hashar@users.mediawiki.org>
Wed, 13 Dec 2006 20:28:17 +0000 (20:28 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Wed, 13 Dec 2006 20:28:17 +0000 (20:28 +0000)
RELEASE-NOTES
includes/SpecialContributions.php

index 49605bf..1d104d1 100644 (file)
@@ -303,6 +303,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   to avoid accidental empty password creations.
 * Made the show change size function work on page moves, page creations, and 
   log entries. Also fixed it in the javascript recentchanges.
+* (bug 8239) correctly get 50 new contributions when clicking '(50 next)'
 
 
 == Languages updated ==
index 5fd821b..82a8c28 100644 (file)
@@ -121,7 +121,6 @@ class ContribsFinder {
        }
 
        /**
-        * @bug 8239
         * @return Timestamp of first entry in next page.
        */
        function getFirstOffsetForPaging() {
@@ -155,7 +154,7 @@ class ContribsFinder {
                list( $index, $userCond ) = $this->getUserCond();
 
                if ( $this->offset )
-                       $offsetQuery = "AND rev_timestamp <= '{$this->offset}'";
+                       $offsetQuery = "AND rev_timestamp < '{$this->offset}'";
 
                $nscond = $this->getNamespaceCond();
                $use_index = $this->dbr->useIndexClause( $index );