diff --git a/router.php b/router.php index ca9a6d6..a3c0ad6 100644 --- a/router.php +++ b/router.php @@ -4,7 +4,7 @@ define('CONF', parse_ini_file(__DIR__ . '/config.ini', true, INI_SCANNER_TYPED)) define('DB', new PDO('sqlite:' . CONF['common']['root_path'] . '/db/servnest.db')); $locale = 'en'; -foreach (explode(',', preg_replace('/[A-Z0-9]|q=|;|-|\./', '', $_SERVER['HTTP_ACCEPT_LANGUAGE'] ?? '') as $client_locale)) { +foreach (explode(',', preg_replace('/[A-Z0-9]|q=|;|-|\./', '', $_SERVER['HTTP_ACCEPT_LANGUAGE'] ?? '')) as $client_locale) { if (in_array($client_locale, array_diff(scandir('locales'), ['..', '.']), true)) { $locale = $client_locale; break;