Index: trunk/extensions/FlaggedRevs/frontend/FlaggedRevsXML.php |
— | — | @@ -5,6 +5,15 @@ |
6 | 6 | */ |
7 | 7 | class FlaggedRevsXML { |
8 | 8 | /** |
| 9 | + * Get the URL path to where the client side resources are (JS, CSS, images..) |
| 10 | + * @return string |
| 11 | + */ |
| 12 | + public static function styleUrlPath() { |
| 13 | + global $wgExtensionAssetsPath; |
| 14 | + return "$wgExtensionAssetsPath/FlaggedRevs/frontend/modules"; |
| 15 | + } |
| 16 | + |
| 17 | + /** |
9 | 18 | * Get a selector of reviewable namespaces |
10 | 19 | * @param int $selected, namespace selected |
11 | 20 | * @param $all Mixed: Value of an item denoting all namespaces, or null to omit |
— | — | @@ -293,7 +302,7 @@ |
294 | 303 | * @return string |
295 | 304 | */ |
296 | 305 | public static function ratingArrow() { |
297 | | - $encPath = htmlspecialchars( FlaggedRevs::styleUrlPath() . '/img' ); |
| 306 | + $encPath = htmlspecialchars( self::styleUrlPath() . '/img' ); |
298 | 307 | $img = '<img id="mw-fr-revisiontoggle" class="fr-toggle-arrow"'; |
299 | 308 | $img .= " src=\"{$encPath}/arrow-down.png\" style=\"display:none;\""; |
300 | 309 | $img .= ' alt="' . wfMsgHtml( 'revreview-toggle-title' ) . '" />'; |
— | — | @@ -351,7 +360,7 @@ |
352 | 361 | * @return string |
353 | 362 | */ |
354 | 363 | public static function draftStatusIcon() { |
355 | | - $encPath = htmlspecialchars( FlaggedRevs::styleUrlPath() . '/img' ); |
| 364 | + $encPath = htmlspecialchars( self::styleUrlPath() . '/img' ); |
356 | 365 | $encTitle = wfMsgHtml( 'revreview-draft-title' ); |
357 | 366 | return "<img class=\"flaggedrevs-icon\" src=\"$encPath/1.png\"" . |
358 | 367 | " alt=\"$encTitle\" title=\"$encTitle\" />"; |
— | — | @@ -363,7 +372,7 @@ |
364 | 373 | * @return string |
365 | 374 | */ |
366 | 375 | public static function stableStatusIcon( $isQuality ) { |
367 | | - $encPath = htmlspecialchars( FlaggedRevs::styleUrlPath() . '/img' ); |
| 376 | + $encPath = htmlspecialchars( self::styleUrlPath() . '/img' ); |
368 | 377 | $file = $isQuality ? '3.png' : '2.png'; |
369 | 378 | $encTitle = $isQuality |
370 | 379 | ? wfMsgHtml( 'revreview-quality-title' ) |
— | — | @@ -378,7 +387,7 @@ |
379 | 388 | * @return string |
380 | 389 | */ |
381 | 390 | public static function lockStatusIcon( $flaggedArticle ) { |
382 | | - $encPath = htmlspecialchars( FlaggedRevs::styleUrlPath() . '/img' ); |
| 391 | + $encPath = htmlspecialchars( self::styleUrlPath() . '/img' ); |
383 | 392 | if ( $flaggedArticle->isPageLocked() ) { |
384 | 393 | $encTitle = wfMsgHtml( 'revreview-locked-title' ); |
385 | 394 | return "<img class=\"flaggedrevs-icon\" src=\"$encPath/doc-magnify.png\"" . |
Index: trunk/extensions/FlaggedRevs/backend/FlaggedRevs.class.php |
— | — | @@ -383,15 +383,6 @@ |
384 | 384 | } |
385 | 385 | |
386 | 386 | /** |
387 | | - * Get the URL path to where the client side resources are (JS, CSS, images..) |
388 | | - * @return string |
389 | | - */ |
390 | | - public static function styleUrlPath() { |
391 | | - global $wgExtensionAssetsPath; |
392 | | - return "$wgExtensionAssetsPath/FlaggedRevs/presentation/modules"; |
393 | | - } |
394 | | - |
395 | | - /** |
396 | 387 | * Get the 'diffonly=' value for diff URLs. Either ('1','0','') |
397 | 388 | * @return array |
398 | 389 | */ |