Fix: Direction was lost when using cache

This commit is contained in:
Laurent Destailleur 2011-01-26 11:36:15 +00:00
parent c10a1d7d4e
commit 014cf0b1e6

View File

@ -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
}
}