From 014cf0b1e609e4ce20cff6b0e14a0f9db245bb54 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 26 Jan 2011 11:36:15 +0000 Subject: [PATCH] Fix: Direction was lost when using cache --- htdocs/core/class/translate.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/translate.class.php b/htdocs/core/class/translate.class.php index 48580c88e24..7aee2ec680b 100644 --- a/htdocs/core/class/translate.class.php +++ b/htdocs/core/class/translate.class.php @@ -252,6 +252,8 @@ class Translate { if ($alt < 2) // We do not load direction for alternate files 2 { $this->tab_translate[$key]=$value; + if ($usecachekey) $tabtranslatedomain[$key]=$value; // To save lang content in cache + if ($stopafterdirection) break; } } @@ -262,7 +264,6 @@ class Translate { //print 'XX'.$key; $this->tab_translate[$key]=$value; - if ($usecachekey) $tabtranslatedomain[$key]=$value; // To save lang content in cache } }