From: Trevor Parscal Date: Mon, 29 Jun 2009 21:38:06 +0000 (+0000) Subject: Divided stylesheets into LTR and RTL versions, but also reverted strange hacks to... X-Git-Tag: 1.31.0-rc.0~41167 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/fiche.php?a=commitdiff_plain;h=3425754b7f0ad1cff69fd415d2e443ac5b981206;p=lhc%2Fweb%2Fwiklou.git Divided stylesheets into LTR and RTL versions, but also reverted strange hacks to make things sort of work in may browsers. Still need to solve RTL problems in browsers with certain CSS limitations. --- diff --git a/skins/Vector.php b/skins/Vector.php index 7f93e1f26c..93df526608 100644 --- a/skins/Vector.php +++ b/skins/Vector.php @@ -35,8 +35,13 @@ class SkinVector extends SkinTemplate { * @param object $out Output page to add styles to */ public function setupSkinUserCss( OutputPage $out ) { + global $wgContLang; // Append to the default screen common & print styles... - $out->addStyle( 'vector/main.css', 'screen' ); + if ( $wgContLang->isRTL() ) { + $out->addStyle( 'vector/main-rtl.css', 'screen' ); + } else { + $out->addStyle( 'vector/main-ltr.css', 'screen' ); + } // Add common styles parent::setupSkinUserCss( $out ); }