mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-09-03 05:41:38 +08:00
修正两个因cli模式下因REQUEST_METHOD为空导致的notic错误
This commit is contained in:
@@ -112,6 +112,7 @@ class Lang
|
||||
// 自动侦测设置获取语言选择
|
||||
$langCookieVar = Config::get('lang_cookie_var');
|
||||
$langDetectVar = Config::get('lang_detect_var');
|
||||
$langSet = '';
|
||||
if (isset($_GET[$langDetectVar])) {
|
||||
// url中设置了语言变量
|
||||
$langSet = strtolower($_GET[$langDetectVar]);
|
||||
|
||||
Reference in New Issue
Block a user