From: Aryeh Gregor Date: Tue, 18 Aug 2009 21:22:59 +0000 (+0000) Subject: Remove all usage of projection stylesheets X-Git-Tag: 1.31.0-rc.0~40234 X-Git-Url: https://git.heureux-cyclage.org/?a=commitdiff_plain;h=dcd44cdf7d2bcca3990ebfe15483e6f01494811f;p=lhc%2Fweb%2Fwiklou.git Remove all usage of projection stylesheets (bug 18497) We don't actually intend for any of these stylesheets to be used for projection, so providing projection is incorrect. Opera will not use screen stylesheets in full-screen mode, but *only* if there's at least one projection stylesheet present somewhere. If we remove *all* projection stylesheets, then theoretically it should fall back to screen stylesheets. I've confirmed that this works fine on my dev wiki with Opera 9.6. --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index a7165c4626..907b81f6d1 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1870,14 +1870,8 @@ class OutputPage { */ public function addStyle( $style, $media='', $condition='', $dir='' ) { $options = array(); - // In Opera, fullscreen mode is treated as projection mode, and it causes - // styles set for screen to not be loaded - thus breaking the page - so - // we can just append projection to the media attribute when it's screen - // so the browser is happy and - with no side-effects on other browsers. - // Also - even though we expect the media type to be lowercase, but here - // we force it to lowercase to be safe. - if ( strtolower( $media ) == 'screen' ) - $media .= ',projection'; + // Even though we expect the media type to be lowercase, but here we + // force it to lowercase to be safe. if( $media ) $options['media'] = $media; if( $condition ) diff --git a/includes/templates/NoLocalSettings.php b/includes/templates/NoLocalSettings.php index 42682d605d..2acc132930 100644 --- a/includes/templates/NoLocalSettings.php +++ b/includes/templates/NoLocalSettings.php @@ -39,7 +39,7 @@ foreach( $topdirs as $dir ){ MediaWiki <?php echo htmlspecialchars( $wgVersion ) ?> -