Revert part of r14280 which broke history paging on 32-bit systems.
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 22 May 2006 00:42:55 +0000 (00:42 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 22 May 2006 00:42:55 +0000 (00:42 +0000)
RELEASE-NOTES
includes/PageHistory.php

index 8501aab..145a101 100644 (file)
@@ -291,7 +291,6 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 5971) Improvement to German localisation (de)
 * (bug 4873) Don't overwrite the subtitle navigation when viewing a redirect page
   that isn't current
-* Enforce the standard upper limit when accessing page histories
 * (bug 2203) Namespace updates for Thai
 * Fix breakage in parser test suite which caused incorrect reporting of the failure of
   {{NUMBEROFFILES}}. Now initialises the site_stats table with some dumb data. Updated
index e177599..4cfee47 100644 (file)
@@ -87,7 +87,8 @@ class PageHistory {
                 * Extract limit, the number of revisions to show, and
                 * offset, the timestamp to begin at, from the URL.
                 */
-               list( $limit, $offset ) = wfCheckLimits( $this->defaultLimit );
+               $limit = $wgRequest->getInt('limit', $this->defaultLimit);
+               $offset = $wgRequest->getText('offset');
 
                /* Offset must be an integral. */
                if (!strlen($offset) || !preg_match("/^[0-9]+$/", $offset))