From: Platonides Date: Tue, 7 Sep 2010 22:55:34 +0000 (+0000) Subject: Follow-up r72349. The new makeResourceLoaderLink() doesn't need $wgScriptPath. X-Git-Tag: 1.31.0-rc.0~35104 X-Git-Url: http://git.cyclocoop.org///%22%40url%40//%22?a=commitdiff_plain;h=d62d973eb7ebfd35effcc28c2b0bcba658c69bdc;p=lhc%2Fweb%2Fwiklou.git Follow-up r72349. The new makeResourceLoaderLink() doesn't need $wgScriptPath. I quite agree with the TODO. Moving to ResourceLoader class seems a good idea. --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index dc659a9acd..33d49316e5 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -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 ) ),