From 3603771c1f9620aaf848182fc04f7a3c7f14f006 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 5 Sep 2006 09:44:52 +0000 Subject: [PATCH] * (bug 7223) Monobook.js is used for site content, should not be localized --- RELEASE-NOTES | 1 + includes/SkinTemplate.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 68af55c203..b5045bc491 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -180,6 +180,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 6675) Replaced message 'watchthis' with new message 'watchthisupload in Special:Upload * Add a quickie script dumpSisterSites.php for generating a page list in the format for WSR-1 SisterSites support +* (bug 7223) Monobook.js is used for site content, should not be localized == Languages updated == diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index f6ee35657c..5d28478054 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -1013,7 +1013,7 @@ class SkinTemplate extends Skin { // avoid inclusion of non defined user JavaScript (with custom skins only) // by checking for default message content $msgKey = ucfirst($this->skinname).'.js'; - $userJS = wfMsg($msgKey); + $userJS = wfMsgForContent($msgKey); if ('<'.$msgKey.'>' != $userJS) { $s .= $userJS; } -- 2.20.1