From 17aa981060c0aa2f51ece62300ae8d8800e24770 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 12 Jul 2007 14:25:48 +0000 Subject: [PATCH] * (bug 10552) Suppress rollback link in history for single-revision pages --- RELEASE-NOTES | 2 ++ includes/PageHistory.php | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index e15cd990f9..38072c27e2 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -278,6 +278,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Padding parser functions now work with strings like '0' that evaluate to false * (bug 10332) Title->userCan( 'edit' ) may return false positive * Fix bug with in front of links for wikis where linkPrefixExtension is true +* (bug 10552) Suppress rollback link in history for single-revision pages + == API changes since 1.10 == diff --git a/includes/PageHistory.php b/includes/PageHistory.php index a29492d11d..cfc447a32a 100644 --- a/includes/PageHistory.php +++ b/includes/PageHistory.php @@ -247,13 +247,13 @@ class PageHistory { $tools = array(); - if( $wgUser->isAllowed( 'rollback' ) && $latest ) { - $tools[] = '' - . $this->mSkin->buildRollbackLink( $rev ) - . ''; - } - if ( !is_null( $next ) ) { + if( $wgUser->isAllowed( 'rollback' ) && $latest ) { + $tools[] = '' + . $this->mSkin->buildRollbackLink( $rev ) + . ''; + } + $undolink = $this->mSkin->makeKnownLinkObj( $this->mTitle, wfMsgHtml( 'editundo' ), -- 2.20.1