From: stevetruckstuff Date: Fri, 29 Sep 2006 20:22:47 +0000 (+0000) Subject: Apply correct stylesheets for RTL languages X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6182ab4dbd078c7b6855c6a25d7cd0b5d3f4258b;p=squirrelmail.git Apply correct stylesheets for RTL languages git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11770 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/page_header.php b/functions/page_header.php index f0d129b2..095638f0 100644 --- a/functions/page_header.php +++ b/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') { /*