Update common.php
parent
cc01d20d05
commit
517cb90621
|
@ -490,7 +490,7 @@ function main($path)
|
||||||
//echo 'main.enterpath:'.$path.'
|
//echo 'main.enterpath:'.$path.'
|
||||||
//';
|
//';
|
||||||
if (isset($_COOKIE['language'])) $constStr['language'] = $_COOKIE['language'];
|
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';
|
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