wiki.techinc.nl/includes/skins/SkinFallback.php
Kunal Mehta eb37e9d1ff Introduce SkinFactory
Modeled similar to ConfigFactory, this lets skins
register themselves via a callback, allowing for
proper dependency injection.

Loading via $wgValidSkinNames is still supported,
but considered "legacy", not deprecated though.

Skin::newFromKey is now deprecated (and had only
one caller in an extension, which I'll update
afterwards).

Change-Id: I1960483f87c2ef55c994545239b728fa376f17f4
2014-08-09 21:40:54 +01:00

26 lines
537 B
PHP

<?php
/**
* Skin file for the fallback skin.
*
* The structure is copied from the example skin (mediawiki/skins/Example).
*
* @since 1.24
* @file
*/
/**
* SkinTemplate class for the fallback skin
*/
class SkinFallback extends SkinTemplate {
var $skinname = 'fallback', $template = 'SkinFallbackTemplate';
/**
* Add CSS via ResourceLoader
*
* @param $out OutputPage
*/
function setupSkinUserCss( OutputPage $out ) {
parent::setupSkinUserCss( $out );
$out->addModuleStyles( 'mediawiki.skinning.interface' );
}
}