Index: trunk/phase3/includes/Skin.php |
— | — | @@ -1018,17 +1018,19 @@ |
1019 | 1019 | $action = $wgRequest->getVal( 'action', 'view' ); |
1020 | 1020 | |
1021 | 1021 | if ( $wgUser->isAllowed( 'deletedhistory' ) && |
1022 | | - ( $this->mTitle->getArticleId() == 0 || $action == 'history' ) && |
1023 | | - $n = $this->mTitle->isDeleted() ) { |
1024 | | - if ( $wgUser->isAllowed( 'undelete' ) ) { |
1025 | | - $msg = 'thisisdeleted'; |
1026 | | - } else { |
1027 | | - $msg = 'viewdeleted'; |
| 1022 | + ( $this->mTitle->getArticleId() == 0 || $action == 'history' ) ) { |
| 1023 | + $n = $this->mTitle->isDeleted(); |
| 1024 | + if ( $n ) { |
| 1025 | + if ( $wgUser->isAllowed( 'undelete' ) ) { |
| 1026 | + $msg = 'thisisdeleted'; |
| 1027 | + } else { |
| 1028 | + $msg = 'viewdeleted'; |
| 1029 | + } |
| 1030 | + return wfMsg( $msg, |
| 1031 | + $this->makeKnownLinkObj( |
| 1032 | + SpecialPage::getTitleFor( 'Undelete', $this->mTitle->getPrefixedDBkey() ), |
| 1033 | + wfMsgExt( 'restorelink', array( 'parsemag', 'escape' ), $wgLang->formatNum( $n ) ) ) ); |
1028 | 1034 | } |
1029 | | - return wfMsg( $msg, |
1030 | | - $this->makeKnownLinkObj( |
1031 | | - SpecialPage::getTitleFor( 'Undelete', $this->mTitle->getPrefixedDBkey() ), |
1032 | | - wfMsgExt( 'restorelink', array( 'parsemag', 'escape' ), $wgLang->formatNum( $n ) ) ) ); |
1033 | 1035 | } |
1034 | 1036 | return ''; |
1035 | 1037 | } |