Index: trunk/phase3/includes/diff/DifferenceEngine.php |
— | — | @@ -370,7 +370,7 @@ |
371 | 371 | if ( !$allowed ) { |
372 | 372 | $msg = $suppressed ? 'rev-suppressed-no-diff' : 'rev-deleted-no-diff'; |
373 | 373 | # 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", |
375 | 375 | array( $msg ) ); |
376 | 376 | } else { |
377 | 377 | # Give explanation and add a link to view the diff... |
— | — | @@ -380,7 +380,7 @@ |
381 | 381 | 'unhide' => 1 |
382 | 382 | ) ); |
383 | 383 | $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 ) ); |
385 | 385 | } |
386 | 386 | # Otherwise, output a regular diff... |
387 | 387 | } else { |
— | — | @@ -388,7 +388,7 @@ |
389 | 389 | $notice = ''; |
390 | 390 | if ( $deleted ) { |
391 | 391 | $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"; |
393 | 393 | } |
394 | 394 | $this->showDiff( $oldHeader, $newHeader, $notice ); |
395 | 395 | if ( !$diffOnly ) { |