Hygiene: Use ExtensionRegistry to manage skin dependencies
Changes: - removed MobileFrontend existence check from MinervaHooks - added MobileFrontend as a requirement inside skin.json Additional benefit: Skin will work only with MobileFrontend v2.0.0 and higher. Change-Id: I1f2f5de3dbc0cf5159a06bc8f47e1cf401a2fcdb
This commit is contained in:
parent
af2210fb87
commit
6819b6e163
|
@ -35,9 +35,6 @@ class MinervaHooks {
|
|||
global $wgResourceLoaderLESSImportPaths;
|
||||
$wgResourceLoaderLESSImportPaths[] = dirname( __DIR__ ) . "/minerva.less/";
|
||||
|
||||
if ( !ExtensionRegistry::getInstance()->isLoaded( 'MobileFrontend' ) ) {
|
||||
die( 'This version of the Minerva skin requires MobileFrontend' );
|
||||
}
|
||||
// Setup alias for compatibility with SkinMinervaNeue.
|
||||
if ( !class_exists( 'SkinMinervaNeue' ) ) {
|
||||
class_alias( 'SkinMinerva', 'SkinMinervaNeue', true );
|
||||
|
|
Loading…
Reference in New Issue