X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=resources%2FResourcesOOUI.php;h=9339e984a03c5871f2358167222de481729026d3;hb=4cc1c9746aa275b48dd119aaa061299c3d8f9739;hp=b2e2bd4dd70fdc7728eb531ed5bea2046da31247;hpb=9ba3fca2d8adc56787c8efc32c41424cb212e387;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/ResourcesOOUI.php b/resources/ResourcesOOUI.php index b2e2bd4dd7..9339e984a0 100644 --- a/resources/ResourcesOOUI.php +++ b/resources/ResourcesOOUI.php @@ -65,9 +65,11 @@ return call_user_func( function () { ], 'skinScripts' => $getSkinSpecific( null, 'js' ), 'dependencies' => [ - 'es5-shim', 'oojs', 'oojs-ui-core.styles', + 'oojs-ui.styles.icons', + 'oojs-ui.styles.indicators', + 'oojs-ui.styles.textures', 'mediawiki.language', ], 'targets' => [ 'desktop', 'mobile' ], @@ -78,19 +80,8 @@ 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', ]; - // Deprecated old name for the module 'oojs-ui-core.styles'. - $modules['oojs-ui.styles'] = $modules['oojs-ui-core.styles']; - // Additional widgets and layouts module. $modules['oojs-ui-widgets'] = [ 'scripts' => 'resources/lib/oojs-ui/oojs-ui-widgets.js',