From c2a85328bc9f2d88f23a4c1aa653451e758cd514 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Fri, 2 Mar 2012 19:35:06 +0000 Subject: [PATCH] Per happy-melon, fix for r107653: don't add the error class on success message --- includes/EditPage.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index f5057e8d7c..3c1dba68af 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -837,7 +837,8 @@ class EditPage { $undoMsg = 'norev'; } - $this->editFormPageTop .= $wgOut->parse( "
" . + $class = ( $undoMsg == 'success' ? '' : 'error ' ) . "mw-undo-{$undoMsg}"; + $this->editFormPageTop .= $wgOut->parse( "
" . wfMsgNoTrans( 'undo-' . $undoMsg ) . '
', true, /* interface */true ); } -- 2.20.1