Index: trunk/extensions/SemanticMediaWiki/includes/SMW_SetupLight.php |
— | — | @@ -428,44 +428,6 @@ |
429 | 429 | } |
430 | 430 | |
431 | 431 | /** |
432 | | - * Register the resource modules for the resource loader. |
433 | | - * |
434 | | - * @since 1.5.3 |
435 | | - * |
436 | | - * @param ResourceLoader $resourceLoader |
437 | | - * |
438 | | - * @return true |
439 | | - */ |
440 | | -function smwfRegisterResourceLoaderModules( ResourceLoader &$resourceLoader ) { |
441 | | - global $smwgScriptPath, $wgContLang; |
442 | | - |
443 | | - $modules = array( |
444 | | - 'ext.smw.style' => array( |
445 | | - 'styles' => $smwgScriptPath . ( $wgContLang->isRTL() ? '/skins/SMW_custom_rtl.css' : '/skins/SMW_custom.css' ) |
446 | | - ), |
447 | | - 'ext.smw.tooltips' => array( |
448 | | - 'scripts' => $smwgScriptPath . '/skins/SMW_tooltip.js', |
449 | | - 'dependencies' => array( |
450 | | - 'mediawiki.legacy.wikibits', |
451 | | - 'ext.smw.style' |
452 | | - ) |
453 | | - ), |
454 | | - 'ext.smw.sorttable' => array( |
455 | | - 'scripts' => $smwgScriptPath . '/skins/SMW_sorttable.js', |
456 | | - 'dependencies' => 'ext.smw.style' |
457 | | - ) |
458 | | - ); |
459 | | - |
460 | | - foreach ( $modules as $name => $resources ) { |
461 | | - $resourceLoader->register( $name, new ResourceLoaderFileModule( |
462 | | - array_merge_recursive( $resources, array( 'group' => 'ext.smw' ) ) |
463 | | - ) ); |
464 | | - } |
465 | | - |
466 | | - return true; |
467 | | -} |
468 | | - |
469 | | -/** |
470 | 432 | * This hook registers parser functions and hooks to the given parser. It is |
471 | 433 | * called during SMW initialisation. Note that parser hooks are something different |
472 | 434 | * than MW hooks in general, which explains the two-level registration. |