Divided stylesheets into LTR and RTL versions, but also reverted strange hacks to...
authorTrevor Parscal <tparscal@users.mediawiki.org>
Mon, 29 Jun 2009 21:38:06 +0000 (21:38 +0000)
committerTrevor Parscal <tparscal@users.mediawiki.org>
Mon, 29 Jun 2009 21:38:06 +0000 (21:38 +0000)
skins/Vector.php

index 7f93e1f..93df526 100644 (file)
@@ -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 );
        }