From: Raimond Spekking Date: Sun, 15 Feb 2009 09:26:08 +0000 (+0000) Subject: * Wrap warning message 'editinginterface' into a div with class 'mw-editinginterface' X-Git-Tag: 1.31.0-rc.0~42889 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=f328e94426390a91295efa33facefebff6d64dec;p=lhc%2Fweb%2Fwiklou.git * Wrap warning message 'editinginterface' into a div with class 'mw-editinginterface' --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 3f4713c274..adea68f5d0 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -100,6 +100,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Add a 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. diff --git a/includes/EditPage.php b/includes/EditPage.php index acb2d7cc26..0d97fcbdee 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -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( "
\n$1
", 'editinginterface' ); } elseif ( $this->mTitle->isProtected( 'edit' ) ) { # Is the title semi-protected? if ( $this->mTitle->isSemiProtected() ) {