From: Alexandre Emsenhuber Date: Fri, 2 Mar 2012 19:35:06 +0000 (+0000) Subject: Per happy-melon, fix for r107653: don't add the error class on success message X-Git-Tag: 1.31.0-rc.0~24424 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=c2a85328bc9f2d88f23a4c1aa653451e758cd514;p=lhc%2Fweb%2Fwiklou.git Per happy-melon, fix for r107653: don't add the error class on success message --- 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 ); }