Update common.php

pull/31/head^2
qkqpttgf 2020-03-13 21:28:07 +08:00 committed by GitHub
parent 1a786206c0
commit c2572bfb19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -489,8 +489,8 @@ function main($path)
global $constStr;
//echo 'main.enterpath:'.$path.'
//';
$constStr['language'] = $_COOKIE['language'];
if ($constStr['language']=='') $constStr['language'] = getConfig('language');
if (isset($_COOKIE['language'])) $constStr['language'] = $_COOKIE['language'];
if (!isset($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);