Followup r74966, r75006: load $wgHandheldStyle again in SkinMonoBook. Can't do this...
authorRoan Kattouw <catrope@users.mediawiki.org>
Wed, 27 Oct 2010 15:21:18 +0000 (15:21 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Wed, 27 Oct 2010 15:21:18 +0000 (15:21 +0000)
skins/MonoBook.php

index 3eb04ce..41ed35b 100644 (file)
@@ -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' );