From 8fdeb727fec0f66598743b3a342e09204f1b2cd4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 26 Jan 2011 12:52:09 +0000 Subject: [PATCH] Fix: Direction was lost when using cache --- htdocs/core/class/translate.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/translate.class.php b/htdocs/core/class/translate.class.php index 622c882a0d0..49cdf7fb20f 100644 --- a/htdocs/core/class/translate.class.php +++ b/htdocs/core/class/translate.class.php @@ -249,7 +249,7 @@ class Translate { } elseif ($key == 'DIRECTION') // This is to declare direction of language { - if ($alt < 2) // We do not load direction for alternate files 2 + if ($alt < 2 || empty($this->tab_translate[$key])) // We load direction only for primary files or if not yer load { $this->tab_translate[$key]=$value;