diff options
Diffstat (limited to 'includes/functions.php')
-rw-r--r-- | includes/functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/functions.php b/includes/functions.php index d741da6..f751cf2 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -81,10 +81,10 @@ function initLang(): void { if (isset($_PROFILE) && isset($_PROFILE["language"]) && !isset($_COOKIE["DeltaHandoffPalette"])) { genLang("en"); - genLang($_PROFILE["language"]); + genLang($_GET["hl"] ?? $_PROFILE["language"]); } else { genLang("en"); - genLang($_COOKIE["DeltaLanguage"] ?? substr($_SERVER['HTTP_ACCEPT_LANGUAGE'] ?? "en", 0, 2)); + genLang($_GET["hl"] ?? $_COOKIE["DeltaLanguage"] ?? substr($_SERVER['HTTP_ACCEPT_LANGUAGE'] ?? "en", 0, 2)); } } |