Update common.php
parent
1a786206c0
commit
c2572bfb19
|
@ -489,8 +489,8 @@ function main($path)
|
||||||
global $constStr;
|
global $constStr;
|
||||||
//echo 'main.enterpath:'.$path.'
|
//echo 'main.enterpath:'.$path.'
|
||||||
//';
|
//';
|
||||||
$constStr['language'] = $_COOKIE['language'];
|
if (isset($_COOKIE['language'])) $constStr['language'] = $_COOKIE['language'];
|
||||||
if ($constStr['language']=='') $constStr['language'] = getConfig('language');
|
if (!isset($constStr['language'])) $constStr['language'] = getConfig('language');
|
||||||
if ($constStr['language']=='') $constStr['language'] = 'en-us';
|
if ($constStr['language']=='') $constStr['language'] = 'en-us';
|
||||||
$_SERVER['language'] = $constStr['language'];
|
$_SERVER['language'] = $constStr['language'];
|
||||||
$_SERVER['PHP_SELF'] = path_format($_SERVER['base_path'] . $path);
|
$_SERVER['PHP_SELF'] = path_format($_SERVER['base_path'] . $path);
|
||||||
|
|
Loading…
Reference in New Issue