Fix: Direction was lost when using cache

This commit is contained in:
Laurent Destailleur 2011-01-26 11:33:06 +00:00
parent bfcd499144
commit 4fabd98fa7

View File

@ -252,6 +252,8 @@ class Translate {
if ($alt < 2) // We do not load direction for alternate files 2 if ($alt < 2) // We do not load direction for alternate files 2
{ {
$this->tab_translate[$key]=$value; $this->tab_translate[$key]=$value;
if ($usecachekey) $tabtranslatedomain[$key]=$value; // To save lang content in cache
if ($stopafterdirection) break; if ($stopafterdirection) break;
} }
} }
@ -262,7 +264,6 @@ class Translate {
//print 'XX'.$key; //print 'XX'.$key;
$this->tab_translate[$key]=$value; $this->tab_translate[$key]=$value;
if ($usecachekey) $tabtranslatedomain[$key]=$value; // To save lang content in cache if ($usecachekey) $tabtranslatedomain[$key]=$value; // To save lang content in cache
} }
} }