* (bug 21303) Comments are no longer stripped from MediaWiki:Common.js and skin-speci...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 14 Jan 2010 19:39:00 +0000 (19:39 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 14 Jan 2010 19:39:00 +0000 (19:39 +0000)
* Removed a trailing space in RELEASE-NOTES

RELEASE-NOTES
includes/Skin.php

index 8606963..174b80b 100644 (file)
@@ -704,11 +704,13 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 9794) User rights log entries for foreign user now links to the foreign
   user's page if possible
 * (bug 14717) Don't load nonexistent CSS fix files for non-Monobook skins
-* (bug 18765) Increased consistency of bold-italic markup for unbalanced quotes. 
+* (bug 18765) Increased consistency of bold-italic markup for unbalanced quotes.
   Improved representation of six quotes (may break existing markup).
 * (bug 22034) Use wfClientAcceptsGzip() in wfGzipHandler instead of
   reimplementing it.
 * (bug 19226) First line renders differently on many UI messages.
+* (bug 21303) Comments are no longer stripped from MediaWiki:Common.js and
+  skin-specific JS pages
 
 == API changes in 1.16 ==
 
index 4c5cca2..ced9b16 100644 (file)
@@ -498,14 +498,14 @@ class Skin extends Linker {
 
                wfProfileIn( __METHOD__ );
                if( !$skinName ) {
-                       $skinName =     $this->getSkinName();
+                       $skinName = $this->getSkinName();
                }
 
                $s = "/* generated javascript */\n";
                $s .= "var skin = '" . Xml::escapeJsString($skinName ) . "';\n";
                $s .= "var stylepath = '" . Xml::escapeJsString( $wgStylePath ) . "';";
                $s .= "\n\n/* MediaWiki:Common.js */\n";
-               $commonJs = wfMsgForContent( 'common.js' );
+               $commonJs = wfMsgExt( 'common.js', 'content' );
                if ( !wfEmptyMsg( 'common.js', $commonJs ) ) {
                        $s .= $commonJs;
                }
@@ -514,7 +514,7 @@ class Skin extends Linker {
                // avoid inclusion of non defined user JavaScript (with custom skins only)
                // by checking for default message content
                $msgKey = ucfirst( $skinName ) . '.js';
-               $userJS = wfMsgForContent( $msgKey );
+               $userJS = wfMsgExt( $msgKey, 'content' );
                if ( !wfEmptyMsg( $msgKey, $userJS ) ) {
                        $s .= $userJS;
                }