Skip to content

Commit

Permalink
Ajout de parametre path pour corriger probleme de traduction
Browse files Browse the repository at this point in the history
  • Loading branch information
tale-fau committed Oct 26, 2023
1 parent c454c50 commit 8c998a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 8c998a7

Please sign in to comment.