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);
|
||||
|
||||
$blang='en';
|
||||
$langs=[];
|
||||
if (array_key_exists('HTTP_ACCEPT_LANGUAGE',$_SERVER)) {
|
||||
$langs=[];
|
||||
$buff=explode(',',$_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
||||
foreach ($buff as $ent) {
|
||||
$ent=trim($ent);
|
||||
|
|
Loading…
Reference in a new issue