* Wrap warning message 'editinginterface' into a div with class 'mw-editinginterface'
authorRaimond Spekking <raymond@users.mediawiki.org>
Sun, 15 Feb 2009 09:26:08 +0000 (09:26 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Sun, 15 Feb 2009 09:26:08 +0000 (09:26 +0000)
RELEASE-NOTES
includes/EditPage.php

index 3f4713c..adea68f 100644 (file)
@@ -100,6 +100,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Add a <link rel="canonical"> tag on redirected page views
 * Replace hardcoded '...' as indication of a truncation with the
   'ellipsis' message
+* Wrap warning message 'editinginterface' into a div with class
+  'mw-editinginterface'
 
 === Bug fixes in 1.15 ===
 * (bug 16968) Special:Upload no longer throws useless warnings.
index acb2d7c..0d97fcb 100644 (file)
@@ -1215,7 +1215,7 @@ class EditPage {
                $classes = array(); // Textarea CSS
                if ( $this->mTitle->getNamespace() == NS_MEDIAWIKI ) {
                        # Show a warning if editing an interface message
-                       $wgOut->addWikiMsg( 'editinginterface' );
+                       $wgOut->wrapWikiMsg( "<div class='mw-editinginterface'>\n$1</div>", 'editinginterface' );
                } elseif ( $this->mTitle->isProtected( 'edit' ) ) {
                        # Is the title semi-protected?
                        if ( $this->mTitle->isSemiProtected() ) {