浏览代码

Apply correct stylesheets for RTL languages

stevetruckstuff 19 年之前
父节点
当前提交
c07ef7308d
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      functions/page_header.php

+ 4 - 2
functions/page_header.php

@@ -68,8 +68,10 @@ function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE
                    . (!empty($used_fontsize) ? '&fontsize='.$used_fontsize : '')
                    . (!empty($text_direction) ? '&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') {
         /*