From: Roan Kattouw Date: Wed, 27 Oct 2010 15:21:18 +0000 (+0000) Subject: Followup r74966, r75006: load $wgHandheldStyle again in SkinMonoBook. Can't do this... X-Git-Tag: 1.31.0-rc.0~34268 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=528340d24ae18aa5628c0575698ab9d424a7327f;p=lhc%2Fweb%2Fwiklou.git Followup r74966, r75006: load $wgHandheldStyle again in SkinMonoBook. Can't do this the nice way (with ResourceLoader) because $wgHandheldStyle might be a URL :( --- diff --git a/skins/MonoBook.php b/skins/MonoBook.php index 3eb04ce811..41ed35b4f3 100644 --- a/skins/MonoBook.php +++ b/skins/MonoBook.php @@ -28,6 +28,12 @@ class SkinMonoBook extends SkinTemplate { $out->addModuleStyles( 'skins.monobook' ); + // Ugh. Can't do this properly because $wgHandheldStyle may be a URL + if( $wgHandheldStyle ) { + // Currently in testing... try 'chick/main.css' + $out->addStyle( $wgHandheldStyle, 'handheld' ); + } + // TODO: Migrate all of these //$out->addStyle( 'monobook/IE50Fixes.css', 'screen', 'lt IE 5.5000' ); //$out->addStyle( 'monobook/IE55Fixes.css', 'screen', 'IE 5.5000' );