the language cookie is set only by the "main.php3" script and its duration is now 30 days
This commit is contained in:
@@ -157,10 +157,7 @@ if (empty($lang)) {
|
|||||||
$lang = $cfgDefaultLang;
|
$lang = $cfgDefaultLang;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Puts the retained language in a cookie that will expire in one year
|
// 4. Defines the associated filename and load the translation
|
||||||
setcookie('lang', $lang, time() + 60*60*24*365);
|
|
||||||
|
|
||||||
// Defines the associated filename and load the translation
|
|
||||||
$lang_file = $lang_path . $available_languages[$lang][1] . '.inc.php3';
|
$lang_file = $lang_path . $available_languages[$lang][1] . '.inc.php3';
|
||||||
require('./' . $lang_file);
|
require('./' . $lang_file);
|
||||||
?>
|
?>
|
Reference in New Issue
Block a user