* (bug 4873) Don't overwrite the subtitle navigation when viewing a redirect page...
authorRob Church <robchurch@users.mediawiki.org>
Wed, 17 May 2006 20:56:49 +0000 (20:56 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Wed, 17 May 2006 20:56:49 +0000 (20:56 +0000)
* Enforce the standard upper limit when accessing page histories

RELEASE-NOTES
includes/Article.php
includes/PageHistory.php

index 6be5d8f..dc92491 100644 (file)
@@ -289,6 +289,12 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 839) Add URLENCODE magic word
 * (bug 6004) Update for Polish language (pl)
 * (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
+=======
+
+>>>>>>> .theirs
 
 == Compatibility ==
 
index 945f5c5..d4a3cde 100644 (file)
@@ -893,7 +893,8 @@ class Article {
                                # Display redirect
                                $imageDir = $wgContLang->isRTL() ? 'rtl' : 'ltr';
                                $imageUrl = $wgStylePath.'/common/images/redirect' . $imageDir . '.png';
-                               if( !$wasRedirected ) {
+                               # Don't overwrite the subtitle if this was an old revision
+                               if( !$wasRedirected && $this->isCurrent() ) {
                                        $wgOut->setSubtitle( wfMsgHtml( 'redirectpagesub' ) );
                                }
                                $targetUrl = $rt->escapeLocalURL();
index 4cfee47..e177599 100644 (file)
@@ -87,8 +87,7 @@ class PageHistory {
                 * Extract limit, the number of revisions to show, and
                 * offset, the timestamp to begin at, from the URL.
                 */
-               $limit = $wgRequest->getInt('limit', $this->defaultLimit);
-               $offset = $wgRequest->getText('offset');
+               list( $limit, $offset ) = wfCheckLimits( $this->defaultLimit );
 
                /* Offset must be an integral. */
                if (!strlen($offset) || !preg_match("/^[0-9]+$/", $offset))