* @return String: JavaScript code for $context
*/
public function getScript( ResourceLoaderContext $context ) {
- global $wgServer;
-
$files = array_merge(
$this->scripts,
self::tryForKey( $this->languageScripts, $context->getLanguage() ),
if ( $this->debugRaw ) {
$script = '';
foreach ( $files as $file ) {
- $path = $wgServer . $this->getRemotePath( $file );
+ $path = $this->getRemotePath( $file );
$script .= "\n\t" . Xml::encodeJsCall( 'mediaWiki.loader.load', array( $path ) );
}
return $script;