Index: trunk/extensions/UsabilityInitiative/UsabilityInitiative.hooks.php |
— | — | @@ -111,7 +111,7 @@ |
112 | 112 | * Adds scripts |
113 | 113 | */ |
114 | 114 | public static function addResources( $out ) { |
115 | | - global $wgScriptPath, $wgJsMimeType; |
| 115 | + global $wgExtensionAssetsPath, $wgJsMimeType; |
116 | 116 | global $wgUsabilityInitiativeResourceMode; |
117 | 117 | global $wgEnableJS2system, $wgEditToolbarRunTests; |
118 | 118 | global $wgStyleVersion; |
— | — | @@ -152,7 +152,7 @@ |
153 | 153 | // Loops over each script |
154 | 154 | foreach ( self::$scripts as $script ) { |
155 | 155 | // Add javascript to document |
156 | | - $src = "$wgScriptPath/extensions/UsabilityInitiative/{$script['src']}"; |
| 156 | + $src = "$wgExtensionAssetsPath/UsabilityInitiative/{$script['src']}"; |
157 | 157 | $version = isset( $script['version'] ) ? $script['version'] : $wgStyleVersion; |
158 | 158 | $out->addScript( |
159 | 159 | Xml::element( |
— | — | @@ -190,8 +190,8 @@ |
191 | 191 | array( |
192 | 192 | 'rel' => 'stylesheet', |
193 | 193 | 'type' => 'text/css', |
194 | | - 'href' => $wgScriptPath . |
195 | | - "/extensions/UsabilityInitiative/" . |
| 194 | + 'href' => $wgExtensionAssetsPath . |
| 195 | + "/UsabilityInitiative/" . |
196 | 196 | "{$style['src']}?{$style['version']}", |
197 | 197 | ) |
198 | 198 | ); |