Index: trunk/phase3/skins/Vector.php |
— | — | @@ -35,8 +35,13 @@ |
36 | 36 | * @param object $out Output page to add styles to |
37 | 37 | */ |
38 | 38 | public function setupSkinUserCss( OutputPage $out ) { |
| 39 | + global $wgContLang; |
39 | 40 | // Append to the default screen common & print styles... |
40 | | - $out->addStyle( 'vector/main.css', 'screen' ); |
| 41 | + if ( $wgContLang->isRTL() ) { |
| 42 | + $out->addStyle( 'vector/main-rtl.css', 'screen' ); |
| 43 | + } else { |
| 44 | + $out->addStyle( 'vector/main-ltr.css', 'screen' ); |
| 45 | + } |
41 | 46 | // Add common styles |
42 | 47 | parent::setupSkinUserCss( $out ); |
43 | 48 | } |