Follow-up r72349. The new makeResourceLoaderLink() doesn't need $wgScriptPath.

I quite agree with the TODO. Moving to ResourceLoader class seems a good idea.
This commit is contained in:
Platonides 2010-09-07 22:55:34 +00:00
parent d3e1536f46
commit d62d973eb7

View file

@ -2281,7 +2281,7 @@ class OutputPage {
}
static function makeResourceLoaderLink( $skin, $modules, $only ) {
global $wgUser, $wgLang, $wgRequest, $wgScriptPath;
global $wgUser, $wgLang, $wgRequest;
// TODO: Should this be a static function of ResourceLoader instead?
$query = array(
'modules' => implode( '|', array_unique( (array) $modules ) ),