1
0
Fork 0
mirror of https://github.com/24eme/signaturepdf synced 2024-05-21 15:16:37 +02:00

Ajout de parametre path pour corriger probleme de traduction

This commit is contained in:
tale-fau 2023-10-26 12:42:27 +02:00
parent c454c50a94
commit 8c998a7290

View file

@ -497,7 +497,7 @@ function selectLanguage($lang, $f3, $putCookie = false) {
}
if($putCookie) {
$cookieDate = strtotime('+1 year');
setcookie("LANGUAGE", $langSupported, ['expires' => $cookieDate, 'samesite' => 'Strict']);
setcookie("LANGUAGE", $langSupported, ['expires' => $cookieDate, 'samesite' => 'Strict', 'path' => "/"]);
}
putenv("LANGUAGE=$langSupported");
}