From 1526ae6b8673b9b7147400e723e4d25b32ccc517 Mon Sep 17 00:00:00 2001 From: D9ping Date: Thu, 13 Sep 2018 00:23:08 +0200 Subject: [PATCH] Fixed check client http header, not session. Signed-off-by: D9ping --- includes/locale.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/locale.php b/includes/locale.php index a3ff8b26..ddd6cfc1 100755 --- a/includes/locale.php +++ b/includes/locale.php @@ -14,7 +14,7 @@ * * Refer to: https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4 */ -if (empty($_SESSION['locale']) && strlen($_SESSION['locale']) >= 2) { +if (empty($_SESSION['locale']) && strlen($_SERVER['HTTP_ACCEPT_LANGUAGE']) >= 2) { $lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2); switch ($lang){ case "de":