@@ 1052-1060 (lines=9) @@ | ||
1049 | } |
|
1050 | ||
1051 | if ( $rev->isDeleted( Revision::DELETED_TEXT ) ) { |
|
1052 | if ( !$rev->userCan( Revision::DELETED_TEXT, $user ) ) { |
|
1053 | $out->wrapWikiMsg( |
|
1054 | "<div class='mw-warning plainlinks'>\n$1\n</div>\n", |
|
1055 | $rev->isDeleted( Revision::DELETED_RESTRICTED ) ? |
|
1056 | 'rev-suppressed-text-permission' : 'rev-deleted-text-permission' |
|
1057 | ); |
|
1058 | ||
1059 | return; |
|
1060 | } |
|
1061 | ||
1062 | $out->wrapWikiMsg( |
|
1063 | "<div class='mw-warning plainlinks'>\n$1\n</div>\n", |
@@ 2926-2936 (lines=11) @@ | ||
2923 | if ( $revision ) { |
|
2924 | // Let sysop know that this will make private content public if saved |
|
2925 | ||
2926 | if ( !$revision->userCan( Revision::DELETED_TEXT, $wgUser ) ) { |
|
2927 | $wgOut->wrapWikiMsg( |
|
2928 | "<div class='mw-warning plainlinks'>\n$1\n</div>\n", |
|
2929 | 'rev-deleted-text-permission' |
|
2930 | ); |
|
2931 | } elseif ( $revision->isDeleted( Revision::DELETED_TEXT ) ) { |
|
2932 | $wgOut->wrapWikiMsg( |
|
2933 | "<div class='mw-warning plainlinks'>\n$1\n</div>\n", |
|
2934 | 'rev-deleted-text-view' |
|
2935 | ); |
|
2936 | } |
|
2937 | ||
2938 | if ( !$revision->isCurrent() ) { |
|
2939 | $this->mArticle->setOldSubtitle( $revision->getId() ); |