* (bug 33967) "Previous revision" and "Newer revision" links now display the correct...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 29 Jan 2012 19:05:04 +0000 (19:05 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 29 Jan 2012 19:05:04 +0000 (19:05 +0000)
(No RELEASE-NOTES entry since that's a 1.19-only bug)

includes/Article.php

index d9fb526..1fbcdb4 100644 (file)
@@ -262,6 +262,7 @@ class Article extends Page {
                        $nextid = $this->getTitle()->getNextRevisionID( $oldid );
                        if ( $nextid ) {
                                $oldid = $nextid;
+                               $this->mRevision = null;
                        } else {
                                $this->mRedirectUrl = $this->getTitle()->getFullURL( 'redirect=no' );
                        }
@@ -269,6 +270,7 @@ class Article extends Page {
                        $previd = $this->getTitle()->getPreviousRevisionID( $oldid );
                        if ( $previd ) {
                                $oldid = $previd;
+                               $this->mRevision = null;
                        }
                }