Index: trunk/phase3/includes/Skin.php |
— | — | @@ -1013,10 +1013,13 @@ |
1014 | 1014 | } |
1015 | 1015 | |
1016 | 1016 | function getUndeleteLink() { |
1017 | | - global $wgUser, $wgContLang, $wgLang, $action; |
1018 | | - if( $wgUser->isAllowed( 'deletedhistory' ) && |
1019 | | - ( ( $this->mTitle->getArticleId() == 0 ) || ( $action == 'history' ) ) && |
1020 | | - ( $n = $this->mTitle->isDeleted() ) ){ |
| 1017 | + global $wgUser, $wgContLang, $wgLang, $wgRequest; |
| 1018 | + |
| 1019 | + $action = $wgRequest->getVal( 'action', 'view' ); |
| 1020 | + |
| 1021 | + if ( $wgUser->isAllowed( 'deletedhistory' ) && |
| 1022 | + ( $this->mTitle->getArticleId() == 0 || $action == 'history' ) && |
| 1023 | + $n = $this->mTitle->isDeleted() ) { |
1021 | 1024 | if ( $wgUser->isAllowed( 'undelete' ) ) { |
1022 | 1025 | $msg = 'thisisdeleted'; |
1023 | 1026 | } else { |