mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-24 22:25:27 +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
|
// Set LESS importpath
|
||||||
global $wgResourceLoaderLESSImportPaths;
|
global $wgResourceLoaderLESSImportPaths;
|
||||||
$wgResourceLoaderLESSImportPaths[] = dirname( __DIR__ ) . "/minerva.less/";
|
$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() );
|
$out->addModuleStyles( $this->getSkinStyles() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Setup alias for compatibility with SkinMinervaNeue.
|
||||||
|
class_alias( 'SkinMinerva', 'SkinMinervaNeue' );
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
"MinervaHooks": "includes/Minerva.hooks.php",
|
"MinervaHooks": "includes/Minerva.hooks.php",
|
||||||
"MinervaTemplate": "includes/skins/MinervaTemplate.php",
|
"MinervaTemplate": "includes/skins/MinervaTemplate.php",
|
||||||
"SkinMinerva": "includes/skins/SkinMinerva.php",
|
"SkinMinerva": "includes/skins/SkinMinerva.php",
|
||||||
|
"SkinMinervaNeue": "includes/skins/SkinMinerva.php",
|
||||||
"ICustomizableSkin": "includes/skins/ICustomizableSkin.php",
|
"ICustomizableSkin": "includes/skins/ICustomizableSkin.php",
|
||||||
"MediaWiki\\Minerva\\MenuBuilder": "includes/skins/MenuBuilder.php",
|
"MediaWiki\\Minerva\\MenuBuilder": "includes/skins/MenuBuilder.php",
|
||||||
"MediaWiki\\Minerva\\MenuEntry": "includes/skins/MenuBuilder.php",
|
"MediaWiki\\Minerva\\MenuEntry": "includes/skins/MenuBuilder.php",
|
||||||
|
|
Loading…
Reference in a new issue