Follow-up r55584: seems that the "View logs for this page" link is useful even when...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 26 Aug 2009 17:37:42 +0000 (17:37 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 26 Aug 2009 17:37:42 +0000 (17:37 +0000)
RELEASE-NOTES
includes/specials/SpecialRevisiondelete.php

index 3e205e4..2a9249b 100644 (file)
@@ -432,8 +432,8 @@ this. Was used when mwEmbed was going to be an extension.
   DatabaseBase::getFlag() now have documentation
 * (bug 19966) MediaWiki:License-header is now used for the licensing header in
   the file description page instead of MediaWiki:License
-* (bug 20380) Link to history/log action at the top of Special:RevisionDelete
-  are new more displayed when when doing log suppression
+* (bug 20380) Links to history/deleted edits at the top of
+  Special:RevisionDelete are no more displayed when when doing log suppression
 * (bug 8143) Localised parser function names are now correctly case insensitive
   if they contain non-ASCII characters
 
index a23455d..3445893 100644 (file)
@@ -183,7 +183,7 @@ class SpecialRevisionDelete extends UnlistedSpecialPage {
        protected function showConvenienceLinks() {
                global $wgOut, $wgUser, $wgLang;
                # Give a link to the logs/hist for this page
-               if( $this->targetObj && $this->targetObj->getNamespace() != NS_SPECIAL ) {
+               if( $this->targetObj ) {
                        $links = array();
                        $logtitle = SpecialPage::getTitleFor( 'Log' );
                        $links[] = $this->skin->linkKnown(
@@ -192,22 +192,24 @@ class SpecialRevisionDelete extends UnlistedSpecialPage {
                                array(),
                                array( 'page' => $this->targetObj->getPrefixedText() )
                        );
-                       # Give a link to the page history
-                       $links[] = $this->skin->linkKnown(
-                               $this->targetObj,
-                               wfMsgHtml( 'pagehist' ),
-                               array(),
-                               array( 'action' => 'history' )
-                       );
-                       # Link to deleted edits
-                       if( $wgUser->isAllowed('undelete') ) {
-                               $undelete = SpecialPage::getTitleFor( 'Undelete' );
+                       if ( $this->targetObj->getNamespace() != NS_SPECIAL ) {
+                               # Give a link to the page history
                                $links[] = $this->skin->linkKnown(
-                                       $undelete,
-                                       wfMsgHtml( 'deletedhist' ),
+                                       $this->targetObj,
+                                       wfMsgHtml( 'pagehist' ),
                                        array(),
-                                       array( 'target' => $this->targetObj->getPrefixedDBkey() )
+                                       array( 'action' => 'history' )
                                );
+                               # Link to deleted edits
+                               if( $wgUser->isAllowed('undelete') ) {
+                                       $undelete = SpecialPage::getTitleFor( 'Undelete' );
+                                       $links[] = $this->skin->linkKnown(
+                                               $undelete,
+                                               wfMsgHtml( 'deletedhist' ),
+                                               array(),
+                                               array( 'target' => $this->targetObj->getPrefixedDBkey() )
+                                       );
+                               }
                        }
                        # Logs themselves don't have histories or archived revisions
                        $wgOut->setSubtitle( '<p>' . $wgLang->pipeList( $links ) . '</p>' );