Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -2436,10 +2436,11 @@ |
2437 | 2437 | |
2438 | 2438 | // Modules requests - let the client calculate dependencies and batch requests as it likes |
2439 | 2439 | if ( $this->getModules() ) { |
2440 | | - $modules = FormatJson::encode( $this->getModules() ); |
| 2440 | + $modules = FormatJson::encode( ); |
2441 | 2441 | $scripts .= Html::inlineScript( |
2442 | 2442 | ResourceLoader::makeLoaderConditionalScript( |
2443 | | - "mediaWiki.loader.load( {$modules} ); mediaWiki.loader.go();" |
| 2443 | + Xml::encodeJsCall( 'mediaWiki.loader.load', $this->getModules() ) . |
| 2444 | + Xml::encodeJsCall( 'mediaWiki.loader.go' ) |
2444 | 2445 | ) |
2445 | 2446 | ) . "\n"; |
2446 | 2447 | } |