Apply correct stylesheets for RTL languages
authorstevetruckstuff <stevetruckstuff@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 29 Sep 2006 20:22:47 +0000 (20:22 +0000)
committerstevetruckstuff <stevetruckstuff@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 29 Sep 2006 20:22:47 +0000 (20:22 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11770 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/page_header.php

index f0d129b2c151373c5968eb93f739fb969eb9edde..095638f07572b255a92d07d5d0950aff89cc570d 100644 (file)
@@ -68,8 +68,10 @@ function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE
                    . (!empty($used_fontsize) ? '&amp;fontsize='.$used_fontsize : '')
                    . (!empty($text_direction) ? '&amp;dir='.$text_direction : '');
     $header_tags .= $oTemplate->fetch_external_stylesheet_links($aUserStyles);
-//FIXME: only call the next method if language is right-to-left!
-    $header_tags .= $oTemplate->fetch_right_to_left_stylesheet_link();
+
+    if ($text_direction == 'rtl') {
+        $header_tags .= $oTemplate->fetch_right_to_left_stylesheet_link();
+    }
 
     if ($squirrelmail_language == 'ja_JP') {
         /*