Merge pull request #564 from sylwit/patch-1

[*] CORE : Translations shouldn't be cached if they contain dynamic vars (sprintf) in Translate.php
This commit is contained in:
Gregory Roussac
2013-07-23 10:22:54 -07:00
+7 -1
View File
@@ -180,7 +180,13 @@ class TranslateCore
if ($js)
$ret = addslashes($ret);
$lang_cache[$cache_key] = str_replace('"', '"', $ret);
$ret = str_replace('"', '"', $ret);
if ($sprintf === null)
$lang_cache[$cache_key] = $ret;
else
return $ret;
}
return $lang_cache[$cache_key];
}