From: Brion Vibber Date: Thu, 12 Jul 2007 14:25:48 +0000 (+0000) Subject: * (bug 10552) Suppress rollback link in history for single-revision pages X-Git-Tag: 1.31.0-rc.0~52122 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=17aa981060c0aa2f51ece62300ae8d8800e24770;p=lhc%2Fweb%2Fwiklou.git * (bug 10552) Suppress rollback link in history for single-revision pages --- 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' ),