Fix hardcoding of /skins in OutputPage::addJQuery()
authorRoan Kattouw <catrope@users.mediawiki.org>
Tue, 2 Feb 2010 01:02:16 +0000 (01:02 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Tue, 2 Feb 2010 01:02:16 +0000 (01:02 +0000)
includes/OutputPage.php

index a378905..7a5e626 100644 (file)
@@ -2583,14 +2583,14 @@ class OutputPage {
         * @return Array: the list of modules which were not loaded.
         */
        public function includeJQuery( $modules = array() ) {
-               global $wgScriptPath, $wgStyleVersion, $wgJsMimeType;
+               global $wgStylePath, $wgStyleVersion, $wgJsMimeType;
 
                $supportedModules = array( /** TODO: add things here */ );
                $unsupported = array_diff( $modules, $supportedModules );
 
                $params = array(
                        'type' => $wgJsMimeType,
-                       'src' => "$wgScriptPath/skins/common/jquery.min.js?$wgStyleVersion",
+                       'src' => "$wgStylePath/jquery.min.js?$wgStyleVersion",
                );
                if ( !$this->mJQueryDone ) {
                        $this->mJQueryDone = true;