r79668 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r79667‎ | r79668 | r79669 >
Date:21:25, 5 January 2011
Author:happy-melon
Status:ok
Tags:
Comment:
Add IDs to various revdel notices for skinning.
Modified paths:
  • /trunk/phase3/includes/diff/DifferenceEngine.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/diff/DifferenceEngine.php
@@ -370,7 +370,7 @@
371371 if ( !$allowed ) {
372372 $msg = $suppressed ? 'rev-suppressed-no-diff' : 'rev-deleted-no-diff';
373373 # Give explanation for why revision is not visible
374 - $wgOut->wrapWikiMsg( "<div class='mw-warning plainlinks'>\n$1\n</div>\n",
 374+ $wgOut->wrapWikiMsg( "<div id='mw-$msg' class='mw-warning plainlinks'>\n$1\n</div>\n",
375375 array( $msg ) );
376376 } else {
377377 # Give explanation and add a link to view the diff...
@@ -380,7 +380,7 @@
381381 'unhide' => 1
382382 ) );
383383 $msg = $suppressed ? 'rev-suppressed-unhide-diff' : 'rev-deleted-unhide-diff';
384 - $wgOut->wrapWikiMsg( "<div class='mw-warning plainlinks'>\n$1\n</div>\n", array( $msg, $link ) );
 384+ $wgOut->wrapWikiMsg( "<div id='mw-$msg' class='mw-warning plainlinks'>\n$1\n</div>\n", array( $msg, $link ) );
385385 }
386386 # Otherwise, output a regular diff...
387387 } else {
@@ -388,7 +388,7 @@
389389 $notice = '';
390390 if ( $deleted ) {
391391 $msg = $suppressed ? 'rev-suppressed-diff-view' : 'rev-deleted-diff-view';
392 - $notice = "<div class='mw-warning plainlinks'>\n" . wfMsgExt( $msg, 'parseinline' ) . "</div>\n";
 392+ $notice = "<div id='mw-$msg' class='mw-warning plainlinks'>\n" . wfMsgExt( $msg, 'parseinline' ) . "</div>\n";
393393 }
394394 $this->showDiff( $oldHeader, $newHeader, $notice );
395395 if ( !$diffOnly ) {

Status & tagging log