diff options
Diffstat (limited to 'skins/Simple.php')
-rw-r--r-- | skins/Simple.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/skins/Simple.php b/skins/Simple.php index db64e48b..b26f50d0 100644 --- a/skins/Simple.php +++ b/skins/Simple.php @@ -18,15 +18,20 @@ require_once( dirname(__FILE__) . '/MonoBook.php' ); * @ingroup Skins */ class SkinSimple extends SkinTemplate { - function initPage( &$out ) { + function initPage( OutputPage $out ) { SkinTemplate::initPage( $out ); $this->skinname = 'simple'; $this->stylename = 'simple'; $this->template = 'MonoBookTemplate'; - $this->cssfiles = array( 'rtl' ); } - function reallyDoGetUserStyles() { + function setupSkinUserCss( OutputPage $out ){ + $out->addStyle( 'simple/main.css', 'screen' ); + $out->addStyle( 'simple/rtl.css', '', '', 'rtl' ); + + } + + function reallyGenerateUserStylesheet() { global $wgUser; $s = ''; if (($undopt = $wgUser->getOption("underline")) != 2) { |