From e335080244403cafabc89236a066f60ba497292f Mon Sep 17 00:00:00 2001 From: BingoKingo Date: Sat, 4 Apr 2020 09:41:42 +0800 Subject: [PATCH] update --- function/normal.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/function/normal.php b/function/normal.php index 68a9afb..d944975 100644 --- a/function/normal.php +++ b/function/normal.php @@ -2,6 +2,7 @@ function getpath() { + $_SERVER['firstacceptlanguage'] = strtolower(splitfirst(splitfirst($_SERVER['HTTP_ACCEPT_LANGUAGE'],';')[0],',')[0]); $_SERVER['base_path'] = path_format(substr($_SERVER['SCRIPT_NAME'], 0, -10) . '/'); $p = strpos($_SERVER['REQUEST_URI'],'?'); if ($p>0) $path = substr($_SERVER['REQUEST_URI'], 0, $p); @@ -118,7 +119,7 @@ function install() if ($_GET['install2']) { if ($_POST['admin']!='') { $tmp['admin'] = $_POST['admin']; - $tmp['language'] = $_COOKIE['language']; + $tmp['language'] = $_POST['language']; $response = setConfig($tmp); if (api_error($response)) { $html = api_error_msg($response);