Index: branches/wmf/1.17wmf1/includes/resourceloader/ResourceLoaderFileModule.php |
— | — | @@ -206,8 +206,6 @@ |
207 | 207 | * @return String: JavaScript code for $context |
208 | 208 | */ |
209 | 209 | public function getScript( ResourceLoaderContext $context ) { |
210 | | - global $wgServer; |
211 | | - |
212 | 210 | $files = array_merge( |
213 | 211 | $this->scripts, |
214 | 212 | self::tryForKey( $this->languageScripts, $context->getLanguage() ), |
— | — | @@ -218,7 +216,7 @@ |
219 | 217 | if ( $this->debugRaw ) { |
220 | 218 | $script = ''; |
221 | 219 | foreach ( $files as $file ) { |
222 | | - $path = $wgServer . $this->getRemotePath( $file ); |
| 220 | + $path = $this->getRemotePath( $file ); |
223 | 221 | $script .= "\n\t" . Xml::encodeJsCall( 'mediaWiki.loader.load', array( $path ) ); |
224 | 222 | } |
225 | 223 | return $script; |