* (bug 34841) Fix for r103502: don't show edit links when display old page versions
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 14 Mar 2012 16:04:21 +0000 (16:04 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 14 Mar 2012 16:04:21 +0000 (16:04 +0000)
RELEASE-NOTES-1.19
includes/Article.php

index 32199f5..c9db5c1 100644 (file)
@@ -18,6 +18,7 @@ production.
 * (bug 35152) Help message for e-mail is shown again in user preferences
 * (bug 34887) $3 and $4 parameters are now substituted correctly in message
   "movepage-moved"
+* (bug 34841) Edit links are no longer displayed when display old page versions
 
 === Configuration changes in 1.19 ===
 * Removed SkinTemplateSetupPageCss hook; use BeforePageDisplay instead.
index d98fc1e..393f770 100644 (file)
@@ -455,7 +455,7 @@ class Article extends Page {
                if ( $wgOut->isPrintable() ) {
                        $parserOptions->setIsPrintable( true );
                        $parserOptions->setEditSection( false );
-               } elseif ( !$this->getTitle()->quickUserCan( 'edit' ) ) {
+               } elseif ( !$this->isCurrent() || !$this->getTitle()->quickUserCan( 'edit' ) ) {
                        $parserOptions->setEditSection( false );
                }