Change to allow usage of different caching systems

This commit is contained in:
Laurent Destailleur
2010-05-08 15:02:04 +00:00
parent 037e957561
commit 2b57efa032

View File

@@ -215,9 +215,9 @@ class Translate {
$this->tab_translate=array_merge($this->tab_translate,$tmparray);
//print $newdomain."\n";
//var_dump($this->tab_translate);
$this->tab_loaded[$newdomain]=3; // Set this file as loaded from cache in session
$this->tab_loaded[$newdomain]=3; // Set this file as loaded from cache
$fileread=1;
$found=true;
$found=true; // Found in dolibarr PHP cache
}
}
@@ -267,7 +267,7 @@ class Translate {
fclose($fp);
$fileread=1;
// To save lang content into session
// To save lang content in cache
if ($alt == 2 && $usecachekey && sizeof($tabtranslatedomain))
{
require_once(DOL_DOCUMENT_ROOT ."/lib/memory.lib.php");