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 Icb910a563273bde92a09b1bb92857d5b6e3
will shortly be merged to deprecate this module to avoid double loading
the styles.

Bug: T242177
Depends-On: Icb910a563273bde92a09b1bb92857d5b6e348baa
Change-Id: Ic7af947cfd5a5df4218f006232ede4ee7ed36c62
This commit is contained in:
jdlrobson 2020-02-24 14:01:11 -08:00 committed by Krinkle
parent 864cc97092
commit b8a8c56284
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@
"ResourceModules": {
"skins.vector.styles": {
"class": "ResourceLoaderSkinModule",
"features": [ "elements", "content", "interface", "logo" ],
"features": [ "elements", "content", "interface", "logo", "legacy" ],
"targets": [
"desktop",
"mobile"