Fix #1214 : incorrect previous & next links in Special:Log
authorAntoine Musso <hashar@users.mediawiki.org>
Mon, 17 Jan 2005 18:53:39 +0000 (18:53 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Mon, 17 Jan 2005 18:53:39 +0000 (18:53 +0000)
includes/SpecialLog.php

index 4481d02..009f538 100644 (file)
@@ -336,13 +336,13 @@ class LogViewer {
         * @private
         */
        function showPrevNext( &$out ) {
-               global $wgContLang;
+               global $wgContLang,$wgRequest;
                $pieces = array();
                $pieces[] = 'type=' . htmlspecialchars( $this->reader->queryType() );
                $pieces[] = 'user=' . htmlspecialchars( $this->reader->queryUser() );
                $pieces[] = 'page=' . htmlspecialchars( $this->reader->queryTitle() );
                $bits = implode( '&', $pieces );
-               $offset = 0; $limit = 50;
+               list( $limit, $offset ) = $wgRequest->getLimitOffset();
                
                # TODO: use timestamps instead of offsets to make it more natural
                # to go huge distances in time