[dev] [patch] IMP language direction patch

Vilius Sumskas vilius at lnk.lt
Mon Sep 6 06:46:17 PDT 2004


Hi,

$language variable not always set in common-header.inc (for example in
preferences window), so this patch checks for it.

-- 
   Best Regards,

   Vilius Sumskas
   LNK TV system administrator
   mob.: +370 614 75713
   www.lnk.lt
-------------- next part --------------
Index: common-header.inc
===================================================================
RCS file: /repository/imp/templates/common-header.inc,v
retrieving revision 2.72
diff -u -r2.72 common-header.inc
--- common-header.inc	1 Sep 2004 09:59:24 -0000	2.72
+++ common-header.inc	6 Sep 2004 13:40:09 -0000
@@ -42,4 +42,4 @@
 <?php echo Horde::stylesheetLink('imp') ?>
 </head>
 
-<body<?php if (Util::nonInputVar('bodyClass')) echo ' class="' . $bodyClass . '"'; if (!empty($nls['rtl'][$language])) echo ' style="direction:rtl"'; ?>>
+<body<?php if (Util::nonInputVar('bodyClass')) echo ' class="' . $bodyClass . '"'; if (!empty($language) && !empty($nls['rtl'][$language])) echo ' style="direction:rtl"'; ?>>


More information about the dev mailing list