Follow-up r72349. The new makeResourceLoaderLink() doesn't need $wgScriptPath.
authorPlatonides <platonides@users.mediawiki.org>
Tue, 7 Sep 2010 22:55:34 +0000 (22:55 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Tue, 7 Sep 2010 22:55:34 +0000 (22:55 +0000)
I quite agree with the TODO. Moving to ResourceLoader class seems a good idea.

includes/OutputPage.php

index dc659a9..33d4931 100644 (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 ) ),