diff --git a/includes/Minerva.hooks.php b/includes/Minerva.hooks.php index cd390c751..1f3717997 100644 --- a/includes/Minerva.hooks.php +++ b/includes/Minerva.hooks.php @@ -34,11 +34,6 @@ class MinervaHooks { // Set LESS importpath global $wgResourceLoaderLESSImportPaths; $wgResourceLoaderLESSImportPaths[] = dirname( __DIR__ ) . "/minerva.less/"; - - // Setup alias for compatibility with SkinMinervaNeue. - if ( !class_exists( 'SkinMinervaNeue' ) ) { - class_alias( 'SkinMinerva', 'SkinMinervaNeue', true ); - } } /** diff --git a/includes/skins/SkinMinerva.php b/includes/skins/SkinMinerva.php index 6a4a25d2e..d4aef1067 100644 --- a/includes/skins/SkinMinerva.php +++ b/includes/skins/SkinMinerva.php @@ -1430,3 +1430,6 @@ class SkinMinerva extends SkinTemplate implements ICustomizableSkin { $out->addModuleStyles( $this->getSkinStyles() ); } } + +// Setup alias for compatibility with SkinMinervaNeue. +class_alias( 'SkinMinerva', 'SkinMinervaNeue' ); diff --git a/skin.json b/skin.json index 23d999a4b..c81b5c1d8 100644 --- a/skin.json +++ b/skin.json @@ -5,6 +5,7 @@ "MinervaHooks": "includes/Minerva.hooks.php", "MinervaTemplate": "includes/skins/MinervaTemplate.php", "SkinMinerva": "includes/skins/SkinMinerva.php", + "SkinMinervaNeue": "includes/skins/SkinMinerva.php", "ICustomizableSkin": "includes/skins/ICustomizableSkin.php", "MediaWiki\\Minerva\\MenuBuilder": "includes/skins/MenuBuilder.php", "MediaWiki\\Minerva\\MenuEntry": "includes/skins/MenuBuilder.php",