Skip to content

Commit

Permalink
Fix: Direction was lost when using cache
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jan 26, 2011
1 parent e1b50e4 commit 20dea64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/class/translate.class.php
Expand Up @@ -249,7 +249,7 @@ function Load($domain,$alt=0,$stopafterdirection=0,$forcelangdir='')
}
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;

Expand Down

0 comments on commit 20dea64

Please sign in to comment.