From f328e94426390a91295efa33facefebff6d64dec Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Sun, 15 Feb 2009 09:26:08 +0000 Subject: [PATCH] * Wrap warning message 'editinginterface' into a div with class 'mw-editinginterface' --- RELEASE-NOTES | 2 ++ includes/EditPage.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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() ) { -- 2.20.1