Index: trunk/phase3/includes/diff/DifferenceEngine.php |
— | — | @@ -271,7 +271,8 @@ |
272 | 272 | $this->showDiffStyle(); |
273 | 273 | $multi = $this->getMultiNotice(); |
274 | 274 | $wgOut->addHTML( $this->addHeader( '', $oldHeader, $newHeader, $multi ) ); |
275 | | - $wgOut->addWikiMsg( 'rev-deleted-no-diff' ); |
| 275 | + $wgOut->wrapWikiMsg( "<div class='mw-warning plainlinks'>\n$1</div>\n", |
| 276 | + array( 'rev-deleted-no-diff' ) ); |
276 | 277 | } else if( $wgEnableHtmlDiff && $this->htmldiff ) { |
277 | 278 | $multi = $this->getMultiNotice(); |
278 | 279 | $wgOut->addHTML('<div class="diff-switchtype">'.$sk->makeKnownLinkObj( $this->mTitle, wfMsgHtml( 'wikicodecomparison' ), |
— | — | @@ -301,9 +302,9 @@ |
302 | 303 | $wgOut->addHTML( "<hr /><h2>{$this->mPagetitle}</h2>\n" ); |
303 | 304 | # Add deleted rev tag if needed |
304 | 305 | if( !$this->mNewRev->userCan(Revision::DELETED_TEXT) ) { |
305 | | - $wgOut->addWikiMsg( 'rev-deleted-text-permission' ); |
| 306 | + $wgOut->wrapWikiMsg( "<div class='mw-warning plainlinks'>\n$1</div>\n", 'rev-deleted-text-permission' ); |
306 | 307 | } else if( $this->mNewRev->isDeleted(Revision::DELETED_TEXT) ) { |
307 | | - $wgOut->addWikiMsg( 'rev-deleted-text-view' ); |
| 308 | + $wgOut->wrapWikiMsg( "<div class='mw-warning plainlinks'>\n$1</div>\n", 'rev-deleted-text-view' ); |
308 | 309 | } |
309 | 310 | |
310 | 311 | if( !$this->mNewRev->isCurrent() ) { |
— | — | @@ -356,9 +357,9 @@ |
357 | 358 | $wgOut->addHTML( '<h2>'.wfMsgHtml( 'visual-comparison' )."</h2>\n" ); |
358 | 359 | #add deleted rev tag if needed |
359 | 360 | if( !$this->mNewRev->userCan(Revision::DELETED_TEXT) ) { |
360 | | - $wgOut->addWikiMsg( 'rev-deleted-text-permission' ); |
| 361 | + $wgOut->wrapWikiMsg( "<div class='mw-warning plainlinks'>\n$1</div>\n", 'rev-deleted-text-permission' ); |
361 | 362 | } else if( $this->mNewRev->isDeleted(Revision::DELETED_TEXT) ) { |
362 | | - $wgOut->addWikiMsg( 'rev-deleted-text-view' ); |
| 363 | + $wgOut->wrapWikiMsg( "<div class='mw-warning plainlinks'>\n$1</div>\n", 'rev-deleted-text-view' ); |
363 | 364 | } |
364 | 365 | |
365 | 366 | if( !$this->mNewRev->isCurrent() ) { |
Index: trunk/phase3/includes/Article.php |
— | — | @@ -923,12 +923,12 @@ |
924 | 924 | # Allow admins to see deleted content if explicitly requested |
925 | 925 | if( $this->mRevision->isDeleted( Revision::DELETED_TEXT ) ) { |
926 | 926 | if( !$unhide || !$this->mRevision->userCan(Revision::DELETED_TEXT) ) { |
927 | | - $wgOut->addWikiMsg( 'rev-deleted-text-permission' ); |
| 927 | + $wgOut->wrapWikiMsg( "<div class='mw-warning plainlinks'>\n$1</div>\n", 'rev-deleted-text-permission' ); |
928 | 928 | $wgOut->setPageTitle( $this->mTitle->getPrefixedText() ); |
929 | 929 | wfProfileOut( __METHOD__ ); |
930 | 930 | return; |
931 | 931 | } else { |
932 | | - $wgOut->addWikiMsg( 'rev-deleted-text-view' ); |
| 932 | + $wgOut->wrapWikiMsg( "<div class='mw-warning plainlinks'>\n$1</div>\n", 'rev-deleted-text-view' ); |
933 | 933 | // and we are allowed to see... |
934 | 934 | } |
935 | 935 | } |
Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -1183,9 +1183,9 @@ |
1184 | 1184 | // Let sysop know that this will make private content public if saved |
1185 | 1185 | |
1186 | 1186 | if ( !$this->mArticle->mRevision->userCan( Revision::DELETED_TEXT ) ) { |
1187 | | - $wgOut->addWikiMsg( 'rev-deleted-text-permission' ); |
| 1187 | + $wgOut->wrapWikiMsg( "<div class='mw-warning plainlinks'>\n$1</div>\n", 'rev-deleted-text-permission' ); |
1188 | 1188 | } else if ( $this->mArticle->mRevision->isDeleted( Revision::DELETED_TEXT ) ) { |
1189 | | - $wgOut->addWikiMsg( 'rev-deleted-text-view' ); |
| 1189 | + $wgOut->wrapWikiMsg( "<div class='mw-warning plainlinks'>\n$1</div>\n", 'rev-deleted-text-view' ); |
1190 | 1190 | } |
1191 | 1191 | |
1192 | 1192 | if ( !$this->mArticle->mRevision->isCurrent() ) { |
Index: trunk/phase3/includes/specials/SpecialUndelete.php |
— | — | @@ -737,10 +737,10 @@ |
738 | 738 | |
739 | 739 | if( $rev->isDeleted(Revision::DELETED_TEXT) ) { |
740 | 740 | if( !$rev->userCan(Revision::DELETED_TEXT) ) { |
741 | | - $wgOut->addWikiText( wfMsg( 'rev-deleted-text-permission' ) ); |
| 741 | + $wgOut->wrapWikiMsg( "<div class='mw-warning plainlinks'>\n$1</div>\n", 'rev-deleted-text-permission' ); |
742 | 742 | return; |
743 | 743 | } else { |
744 | | - $wgOut->addWikiText( wfMsg( 'rev-deleted-text-view' ) ); |
| 744 | + $wgOut->wrapWikiMsg( "<div class='mw-warning plainlinks'>\n$1</div>\n", 'rev-deleted-text-view' ); |
745 | 745 | $wgOut->addHTML( '<br/>' ); |
746 | 746 | // and we are allowed to see... |
747 | 747 | } |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -1291,15 +1291,13 @@ |
1292 | 1292 | 'rev-deleted-comment' => '(comment removed)', |
1293 | 1293 | 'rev-deleted-user' => '(username removed)', |
1294 | 1294 | 'rev-deleted-event' => '(log action removed)', |
1295 | | -'rev-deleted-text-permission' => '<div class="mw-warning plainlinks"> |
1296 | | -This page revision has been removed from the public archives. |
1297 | | -There may be details in the [{{fullurl:Special:Log/delete|page={{FULLPAGENAMEE}}}} deletion log].</div>', |
1298 | | -'rev-deleted-text-view' => '<div class="mw-warning plainlinks"> |
1299 | | -This page revision has been removed from the public archives. |
| 1295 | +'rev-deleted-text-permission' => 'This page revision has been removed from the public archives. |
| 1296 | +There may be details in the [{{fullurl:Special:Log/delete|page={{FULLPAGENAMEE}}}} deletion log].', |
| 1297 | +'rev-deleted-text-view' => 'This page revision has been removed from the public archives. |
1300 | 1298 | As an administrator on {{SITENAME}} you can view it; |
1301 | | -there may be details in the [{{fullurl:Special:Log/delete|page={{FULLPAGENAMEE}}}} deletion log].</div>', |
1302 | | -'rev-deleted-no-diff' => '<div class="mw-warning plainlinks">You cannot view this diff because one of the revisions has been removed from the public archives. |
1303 | | -There may be details in the [{{fullurl:Special:Log/delete|page={{FULLPAGENAMEE}}}} deletion log].</div>', |
| 1299 | +there may be details in the [{{fullurl:Special:Log/delete|page={{FULLPAGENAMEE}}}} deletion log].', |
| 1300 | +'rev-deleted-no-diff' => 'You cannot view this diff because one of the revisions has been removed from the public archives. |
| 1301 | +There may be details in the [{{fullurl:Special:Log/delete|page={{FULLPAGENAMEE}}}} deletion log].', |
1304 | 1302 | 'rev-delundel' => 'show/hide', |
1305 | 1303 | 'revisiondelete' => 'Delete/undelete revisions', |
1306 | 1304 | 'revdelete-nooldid-title' => 'Invalid target revision', |
Index: trunk/extensions/MetavidWiki/includes/MV_MetavidInterface/MV_EditPageAjax.php |
— | — | @@ -469,7 +469,7 @@ |
470 | 470 | if ( isset( $this->mArticle ) && isset( $this->mArticle->mRevision ) ) { |
471 | 471 | // Let sysop know that this will make private content public if saved |
472 | 472 | if ( $this->mArticle->mRevision->isDeleted( Revision::DELETED_TEXT ) ) { |
473 | | - $wgOut->addWikiText( wfMsg( 'rev-deleted-text-view' ) ); |
| 473 | + $wgOut->wrapWikiMsg( "<div class='mw-warning plainlinks'>\n$1</div>\n", 'rev-deleted-text-view' ); |
474 | 474 | } |
475 | 475 | if ( !$this->mArticle->mRevision->isCurrent() ) { |
476 | 476 | $this->mArticle->setOldSubtitle( $this->mArticle->mRevision->getId() ); |