Add tests for r96562. HttpTest still has 5 failing test (which is why it's marked...
[lhc/web/wiklou.git] / skins / Simple.php
index 0644377..ad1df57 100644 (file)
@@ -30,12 +30,12 @@ class SkinSimple extends SkinTemplate {
                $out->addModuleStyles( 'skins.simple' );
 
                /* Add some userprefs specific CSS styling */
-               global $wgUser, $wgContLang;
+               global $wgUser;
                $rules = array();
                $underline = "";
 
                if ( $wgUser->getOption( 'underline' ) < 2 ) {
-                       $underline = "text-decoration: " . $wgUser->getOption( 'underline' ) ? 'underline' : 'none' . ";";
+                       $underline = "text-decoration: " . $wgUser->getOption( 'underline' ) ? 'underline !important' : 'none' . ";";
                }
 
                /* Also inherits from resourceloader */
@@ -45,10 +45,7 @@ class SkinSimple extends SkinTemplate {
                        $rules[] = "a.stub:after { $underline; }";
                }
                $style = implode( "\n", $rules );
-               if ( $wgContLang->getDir() === 'rtl' ) {
-                       $style = CSSJanus::transform( $style, true, false );
-               }
-               $out->addInlineStyle( $style );
+               $out->addInlineStyle( $style, /* flip css if RTL */true );
 
        }
 }