From 5bc85ba20f064bdae4e5541bd447000b7e11b3af Mon Sep 17 00:00:00 2001 From: pezcurrel Date: Sun, 15 Sep 2024 04:20:55 +0200 Subject: [PATCH] =?UTF-8?q?Moved=20=E2=80=9C$langs=E2=80=9D=20definition?= =?UTF-8?q?=20to=20global=20scope?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/site/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/site/index.php b/web/site/index.php index ca9c287..78a936f 100644 --- a/web/site/index.php +++ b/web/site/index.php @@ -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);