* (bug 10552) Suppress rollback link in history for single-revision pages
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 12 Jul 2007 14:25:48 +0000 (14:25 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 12 Jul 2007 14:25:48 +0000 (14:25 +0000)
RELEASE-NOTES
includes/PageHistory.php

index e15cd99..38072c2 100644 (file)
@@ -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 <nowiki> 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 ==
 
index a29492d..cfc447a 100644 (file)
@@ -247,13 +247,13 @@ class PageHistory {
                
                $tools = array();
                
-               if( $wgUser->isAllowed( 'rollback' ) && $latest ) {
-                       $tools[] = '<span class="mw-rollback-link">'
-                               . $this->mSkin->buildRollbackLink( $rev )
-                               . '</span>';
-               }
-                       
                if ( !is_null( $next ) ) {
+                       if( $wgUser->isAllowed( 'rollback' ) && $latest ) {
+                               $tools[] = '<span class="mw-rollback-link">'
+                                       . $this->mSkin->buildRollbackLink( $rev )
+                                       . '</span>';
+                       }
+
                        $undolink = $this->mSkin->makeKnownLinkObj(
                                $this->mTitle,
                                wfMsgHtml( 'editundo' ),