Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -200,10 +200,6 @@ |
201 | 201 | $wgAddGroups['bureaucrat'][] = 'reviewer'; |
202 | 202 | $wgRemoveGroups['bureaucrat'][] = 'reviewer'; |
203 | 203 | |
204 | | -# URL location that has an /img subdirectory containing UI icons |
205 | | -# Use a literal $wgScriptPath as a placeholder for the runtime value of $wgScriptPath |
206 | | -$wgFlaggedRevsStylePath = '$wgScriptPath/extensions/FlaggedRevs/client'; |
207 | | - |
208 | 204 | # How far the logs for overseeing quality revisions and depreciations go |
209 | 205 | $wgFlaggedRevsOversightAge = 30 * 24 * 3600; |
210 | 206 | |
Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php |
— | — | @@ -357,12 +357,12 @@ |
358 | 358 | } |
359 | 359 | |
360 | 360 | /** |
361 | | - * Get the URL path to /client |
| 361 | + * Get the URL path to /client (has JS, CSS, & icons) |
362 | 362 | * @return string |
363 | 363 | */ |
364 | 364 | public static function styleUrlPath() { |
365 | | - global $wgFlaggedRevsStylePath, $wgScriptPath; |
366 | | - return str_replace( '$wgScriptPath', $wgScriptPath, $wgFlaggedRevsStylePath ); |
| 365 | + global $wgExtensionAssetsPath; |
| 366 | + return "$wgExtensionAssetsPath/FlaggedRevs/client"; |
367 | 367 | } |
368 | 368 | |
369 | 369 | # ################ Permission functions ################# |