after setting the cookie we have to reload the page to make it available

This commit is contained in:
HB9HIL
2024-07-09 13:52:42 +02:00
parent 345b73c267
commit a21f18991e

View File

@@ -99,6 +99,8 @@ if (isset($_GET['lang'])) {
if (!isset($_COOKIE[$gt_conf['lang_cookie']])) {
$browser_language = _get_client_language();
setcookie($gt_conf['lang_cookie'], $browser_language['gettext']);
header("Location: " . $installer_url);
exit();
}
// get the language from the cookie
$language = $_COOKIE[$gt_conf['lang_cookie']];