Moved “$langs” definition to global scope

This commit is contained in:
pezcurrel 2024-09-15 04:20:55 +02:00
parent 758e570794
commit 5bc85ba20f

View file

@ -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);