r110251 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r110250‎ | r110251 | r110252 >
Date:19:05, 29 January 2012
Author:ialex
Status:ok
Tags:
Comment:
* (bug 33967) "Previous revision" and "Newer revision" links now display the correct revision

(No RELEASE-NOTES entry since that's a 1.19-only bug)
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -262,6 +262,7 @@
263263 $nextid = $this->getTitle()->getNextRevisionID( $oldid );
264264 if ( $nextid ) {
265265 $oldid = $nextid;
 266+ $this->mRevision = null;
266267 } else {
267268 $this->mRedirectUrl = $this->getTitle()->getFullURL( 'redirect=no' );
268269 }
@@ -269,6 +270,7 @@
270271 $previd = $this->getTitle()->getPreviousRevisionID( $oldid );
271272 if ( $previd ) {
272273 $oldid = $previd;
 274+ $this->mRevision = null;
273275 }
274276 }
275277

Status & tagging log