https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112911

Revision: 112911
Author:   ialex
Date:     2012-03-02 19:35:06 +0000 (Fri, 02 Mar 2012)
Log Message:
-----------
Per happy-melon, fix for r107653: don't add the error class on success message

Modified Paths:
--------------
    branches/REL1_19/phase3/includes/EditPage.php
    trunk/phase3/includes/EditPage.php

Modified: branches/REL1_19/phase3/includes/EditPage.php
===================================================================
--- branches/REL1_19/phase3/includes/EditPage.php       2012-03-02 19:26:22 UTC 
(rev 112910)
+++ branches/REL1_19/phase3/includes/EditPage.php       2012-03-02 19:35:06 UTC 
(rev 112911)
@@ -828,7 +828,8 @@
                                                $undoMsg = 'norev';
                                        }
 
-                                       $this->editFormPageTop .= 
$wgOut->parse( "<div class=\"error mw-undo-{$undoMsg}\">" .
+                                       $class = ( $undoMsg == 'success' ? '' : 
'error ' ) . "mw-undo-{$undoMsg}";
+                                       $this->editFormPageTop .= 
$wgOut->parse( "<div class=\"{$class}\">" .
                                                wfMsgNoTrans( 'undo-' . 
$undoMsg ) . '</div>', true, /* interface */true );
                                }
 

Modified: trunk/phase3/includes/EditPage.php
===================================================================
--- trunk/phase3/includes/EditPage.php  2012-03-02 19:26:22 UTC (rev 112910)
+++ trunk/phase3/includes/EditPage.php  2012-03-02 19:35:06 UTC (rev 112911)
@@ -837,7 +837,8 @@
                                                $undoMsg = 'norev';
                                        }
 
-                                       $this->editFormPageTop .= 
$wgOut->parse( "<div class=\"error mw-undo-{$undoMsg}\">" .
+                                       $class = ( $undoMsg == 'success' ? '' : 
'error ' ) . "mw-undo-{$undoMsg}";
+                                       $this->editFormPageTop .= 
$wgOut->parse( "<div class=\"{$class}\">" .
                                                wfMsgNoTrans( 'undo-' . 
$undoMsg ) . '</div>', true, /* interface */true );
                                }
 


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to