Index: trunk/phase3/includes/Skin.php |
— | — | @@ -498,14 +498,14 @@ |
499 | 499 | |
500 | 500 | wfProfileIn( __METHOD__ ); |
501 | 501 | if( !$skinName ) { |
502 | | - $skinName = $this->getSkinName(); |
| 502 | + $skinName = $this->getSkinName(); |
503 | 503 | } |
504 | 504 | |
505 | 505 | $s = "/* generated javascript */\n"; |
506 | 506 | $s .= "var skin = '" . Xml::escapeJsString($skinName ) . "';\n"; |
507 | 507 | $s .= "var stylepath = '" . Xml::escapeJsString( $wgStylePath ) . "';"; |
508 | 508 | $s .= "\n\n/* MediaWiki:Common.js */\n"; |
509 | | - $commonJs = wfMsgForContent( 'common.js' ); |
| 509 | + $commonJs = wfMsgExt( 'common.js', 'content' ); |
510 | 510 | if ( !wfEmptyMsg( 'common.js', $commonJs ) ) { |
511 | 511 | $s .= $commonJs; |
512 | 512 | } |
— | — | @@ -514,7 +514,7 @@ |
515 | 515 | // avoid inclusion of non defined user JavaScript (with custom skins only) |
516 | 516 | // by checking for default message content |
517 | 517 | $msgKey = ucfirst( $skinName ) . '.js'; |
518 | | - $userJS = wfMsgForContent( $msgKey ); |
| 518 | + $userJS = wfMsgExt( $msgKey, 'content' ); |
519 | 519 | if ( !wfEmptyMsg( $msgKey, $userJS ) ) { |
520 | 520 | $s .= $userJS; |
521 | 521 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -704,11 +704,13 @@ |
705 | 705 | * (bug 9794) User rights log entries for foreign user now links to the foreign |
706 | 706 | user's page if possible |
707 | 707 | * (bug 14717) Don't load nonexistent CSS fix files for non-Monobook skins |
708 | | -* (bug 18765) Increased consistency of bold-italic markup for unbalanced quotes. |
| 708 | +* (bug 18765) Increased consistency of bold-italic markup for unbalanced quotes. |
709 | 709 | Improved representation of six quotes (may break existing markup). |
710 | 710 | * (bug 22034) Use wfClientAcceptsGzip() in wfGzipHandler instead of |
711 | 711 | reimplementing it. |
712 | 712 | * (bug 19226) First line renders differently on many UI messages. |
| 713 | +* (bug 21303) Comments are no longer stripped from MediaWiki:Common.js and |
| 714 | + skin-specific JS pages |
713 | 715 | |
714 | 716 | == API changes in 1.16 == |
715 | 717 | |