mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-24 14:23:53 +00:00
Merge "Move class_alias out of skin initialization"
This commit is contained in:
commit
9fa40f81d8
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1430,3 +1430,6 @@ class SkinMinerva extends SkinTemplate implements ICustomizableSkin {
|
|||
$out->addModuleStyles( $this->getSkinStyles() );
|
||||
}
|
||||
}
|
||||
|
||||
// Setup alias for compatibility with SkinMinervaNeue.
|
||||
class_alias( 'SkinMinerva', 'SkinMinervaNeue' );
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue