* (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 ==
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;
}
// 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;
}