1
0
Fork 0
mirror of https://github.com/24eme/signaturepdf synced 2024-06-03 14:32:13 +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) { if($putCookie) {
$cookieDate = strtotime('+1 year'); $cookieDate = strtotime('+1 year');
setcookie("LANGUAGE", $langSupported, ['expires' => $cookieDate, 'samesite' => 'Strict']); setcookie("LANGUAGE", $langSupported, ['expires' => $cookieDate, 'samesite' => 'Strict', 'path' => "/"]);
} }
putenv("LANGUAGE=$langSupported"); putenv("LANGUAGE=$langSupported");
} }