X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FOutputPage.php;h=24a506c7aaf1d13fc42cdabb4c2c7dade75b8091;hb=fd9c94d971dfac73f0ea5865a3df80e69cf71ea7;hp=e22f42ce213066c7c3c90671f2b238faebee4e2d;hpb=4ec966b4bde9ce7ae442468b9bd98e94384d52c9;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/OutputPage.php b/includes/OutputPage.php index e22f42ce21..24a506c7aa 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -3952,12 +3952,10 @@ class OutputPage extends ContextSource { * @param String $skinName The Skin name to determine the correct OOUI theme * @param String $dir Language direction */ - public static function setupOOUI( $skinName = '', $dir = 'ltr' ) { - $themes = ExtensionRegistry::getInstance()->getAttribute( 'SkinOOUIThemes' ); - // Make keys (skin names) lowercase for case-insensitive matching. - $themes = array_change_key_case( $themes, CASE_LOWER ); - $theme = isset( $themes[$skinName] ) ? $themes[$skinName] : 'MediaWiki'; - // For example, 'OOUI\MediaWikiTheme'. + public static function setupOOUI( $skinName = 'default', $dir = 'ltr' ) { + $themes = ResourceLoaderOOUIModule::getSkinThemeMap(); + $theme = isset( $themes[$skinName] ) ? $themes[$skinName] : $themes['default']; + // For example, 'OOUI\WikimediaUITheme'. $themeClass = "OOUI\\{$theme}Theme"; OOUI\Theme::setSingleton( new $themeClass() ); OOUI\Element::setDefaultDir( $dir ); @@ -3976,10 +3974,12 @@ class OutputPage extends ContextSource { ); $this->addModuleStyles( [ 'oojs-ui-core.styles', - 'oojs-ui.styles.icons', 'oojs-ui.styles.indicators', 'oojs-ui.styles.textures', 'mediawiki.widgets.styles', + 'oojs-ui.styles.icons-content', + 'oojs-ui.styles.icons-alerts', + 'oojs-ui.styles.icons-interactions', ] ); }