From: Alexandre Emsenhuber Date: Sun, 29 Jan 2012 19:05:04 +0000 (+0000) Subject: * (bug 33967) "Previous revision" and "Newer revision" links now display the correct... X-Git-Tag: 1.31.0-rc.0~25029 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_supprimer.php?a=commitdiff_plain;h=e0e8f92227f6a62a836d167378116680ac6ae9d1;p=lhc%2Fweb%2Fwiklou.git * (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) --- diff --git a/includes/Article.php b/includes/Article.php index d9fb526e4a..1fbcdb4ce8 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -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; } }