Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -837,7 +837,8 @@ |
838 | 838 | $undoMsg = 'norev'; |
839 | 839 | } |
840 | 840 | |
841 | | - $this->editFormPageTop .= $wgOut->parse( "<div class=\"error mw-undo-{$undoMsg}\">" . |
| 841 | + $class = ( $undoMsg == 'success' ? '' : 'error ' ) . "mw-undo-{$undoMsg}"; |
| 842 | + $this->editFormPageTop .= $wgOut->parse( "<div class=\"{$class}\">" . |
842 | 843 | wfMsgNoTrans( 'undo-' . $undoMsg ) . '</div>', true, /* interface */true ); |
843 | 844 | } |
844 | 845 | |
Index: branches/REL1_19/phase3/includes/EditPage.php |
— | — | @@ -828,7 +828,8 @@ |
829 | 829 | $undoMsg = 'norev'; |
830 | 830 | } |
831 | 831 | |
832 | | - $this->editFormPageTop .= $wgOut->parse( "<div class=\"error mw-undo-{$undoMsg}\">" . |
| 832 | + $class = ( $undoMsg == 'success' ? '' : 'error ' ) . "mw-undo-{$undoMsg}"; |
| 833 | + $this->editFormPageTop .= $wgOut->parse( "<div class=\"{$class}\">" . |
833 | 834 | wfMsgNoTrans( 'undo-' . $undoMsg ) . '</div>', true, /* interface */true ); |
834 | 835 | } |
835 | 836 | |