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:
parent
d3e1536f46
commit
d62d973eb7
1 changed files with 1 additions and 1 deletions
|
|
@ -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 ) ),
|
||||
|
|
|
|||
Loading…
Reference in a new issue