Moved “$langs” definition to global scope
This commit is contained in:
parent
758e570794
commit
5bc85ba20f
1 changed files with 1 additions and 1 deletions
|
@ -23,8 +23,8 @@ for ($i=0; $i<$ndir; $i++)
|
||||||
$path=preg_replace('#/+$#','',$path);
|
$path=preg_replace('#/+$#','',$path);
|
||||||
|
|
||||||
$blang='en';
|
$blang='en';
|
||||||
|
$langs=[];
|
||||||
if (array_key_exists('HTTP_ACCEPT_LANGUAGE',$_SERVER)) {
|
if (array_key_exists('HTTP_ACCEPT_LANGUAGE',$_SERVER)) {
|
||||||
$langs=[];
|
|
||||||
$buff=explode(',',$_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
$buff=explode(',',$_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
||||||
foreach ($buff as $ent) {
|
foreach ($buff as $ent) {
|
||||||
$ent=trim($ent);
|
$ent=trim($ent);
|
||||||
|
|
Loading…
Reference in a new issue