X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=resources%2FResourcesOOUI.php;h=c9b5d89c941fe73ce8a0b44b8bdf5630a839516e;hb=18d8f2aa9998f516bc48ec20663c8fe56e051cd3;hp=b31fe829f8775fc04c0b1336415ab144dc2a8993;hpb=887ba639a2b8d8f8a40babf93524eb05b1387c71;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/ResourcesOOUI.php b/resources/ResourcesOOUI.php index b31fe829f8..c9b5d89c94 100644 --- a/resources/ResourcesOOUI.php +++ b/resources/ResourcesOOUI.php @@ -30,7 +30,7 @@ return call_user_func( function () { $themes = ExtensionRegistry::getInstance()->getAttribute( 'SkinOOUIThemes' ); // We only use the theme names for file names, and they are lowercase $themes = array_map( 'strtolower', $themes ); - $themes['default'] = 'mediawiki'; + $themes['default'] = 'wikimediaui'; // Helper function to generate paths to files used in 'skinStyles' and 'skinScripts'. $getSkinSpecific = function ( $module, $ext = 'css' ) use ( $themes ) { @@ -65,9 +65,10 @@ return call_user_func( function () { ], 'skinScripts' => $getSkinSpecific( null, 'js' ), 'dependencies' => [ - 'es5-shim', 'oojs', 'oojs-ui-core.styles', + 'oojs-ui.styles.indicators', + 'oojs-ui.styles.textures', 'mediawiki.language', ], 'targets' => [ 'desktop', 'mobile' ], @@ -78,14 +79,6 @@ return call_user_func( function () { 'styles' => 'resources/src/oojs-ui-local.css', // HACK, see inside the file 'skinStyles' => $getSkinSpecific( 'core' ), 'targets' => [ 'desktop', 'mobile' ], - // ResourceLoaderImageModule doesn't support 'skipFunction', so instead we set this up so that - // this module is skipped together with its dependencies. Nothing else depends on these modules. - 'dependencies' => [ - 'oojs-ui.styles.icons', - 'oojs-ui.styles.indicators', - 'oojs-ui.styles.textures', - ], - 'skipFunction' => 'resources/src/oojs-ui-styles-skip.js', ]; // Additional widgets and layouts module.