Get legacy styles from ResourceLoaderSkinModule

Instead of relying on Skin::getDefaultModules to get
`mediawiki.legacy.styles` make the legacy style feature an explicit
opt in choice by including it in the features list.

This is done on the assumption that Icb910a563273bde92a09b1bb92857d5b6e348baa
will shortly be merged to deprecate this module to avoid double loading
the styles.

Bug: T242177
Depends-On: Icb910a563273bde92a09b1bb92857d5b6e348baa
Change-Id: I6471bc169f3c2a1f51e17b8ee26ac245b0374c18
This commit is contained in:
jdlrobson 2020-02-24 14:15:03 -08:00 committed by Jdlrobson
parent d82657b711
commit b3847eaa95

View file

@ -34,7 +34,7 @@
"ResourceModules": { "ResourceModules": {
"skins.monobook.styles": { "skins.monobook.styles": {
"class": "ResourceLoaderSkinModule", "class": "ResourceLoaderSkinModule",
"features": [ "elements", "content", "interface", "logo" ], "features": [ "elements", "content", "interface", "logo", "legacy" ],
"styles": { "styles": {
"resources/screen-common.less": { "resources/screen-common.less": {
"media": "screen" "media": "screen"
@ -50,6 +50,7 @@
"elements", "elements",
"content", "content",
"interface", "interface",
"legacy",
"logo" "logo"
], ],
"targets": [ "targets": [
@ -69,10 +70,9 @@
} }
}, },
"skins.monobook.mobile": { "skins.monobook.mobile": {
"targets": [ "class": "ResourceLoaderSkinModule",
"desktop", "features": [ "elements", "content", "interface", "logo", "legacy" ],
"mobile" "targets": [ "desktop", "mobile" ],
],
"scripts": [ "scripts": [
"resources/mobile.js" "resources/mobile.js"
], ],