mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
after setting the cookie we have to reload the page to make it available
This commit is contained in:
@@ -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']];
|
||||
|
||||
Reference in New Issue
Block a user