Fix: Direction was lost when using cache
This commit is contained in:
parent
014cf0b1e6
commit
e1b50e4456
@ -252,9 +252,9 @@ 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; // We do not save tab if we stop after DIRECTION
|
||||||
|
else if ($usecachekey) $tabtranslatedomain[$key]=$value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -264,6 +264,7 @@ 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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user