Update common.php

This commit is contained in:
qkqpttgf
2020-03-13 21:45:41 +08:00
committed by GitHub
parent cc01d20d05
commit 517cb90621
+1 -1
View File
@@ -490,7 +490,7 @@ function main($path)
//echo 'main.enterpath:'.$path.'
//';
if (isset($_COOKIE['language'])) $constStr['language'] = $_COOKIE['language'];
if (!isset($constStr['language'])) $constStr['language'] = getConfig('language');
if (!$constStr['language']) $constStr['language'] = getConfig('language');
if ($constStr['language']=='') $constStr['language'] = 'en-us';
$_SERVER['language'] = $constStr['language'];
$_SERVER['PHP_SELF'] = path_format($_SERVER['base_path'] . $path);