We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bd2d0a commit b62aba4Copy full SHA for b62aba4
web/inc/i18n.php
@@ -69,7 +69,7 @@ function detect_user_language($fallback='en') {
69
70
// Sort Accept-Language by `q` value
71
$accept_langs = explode(',', preg_replace('/\s/', '', strtolower($_SERVER['HTTP_ACCEPT_LANGUAGE'])));
72
- $accept_langs_sorted = [];
+ $accept_langs_sorted = array() ;
73
foreach ($accept_langs as $lang) {
74
$div = explode(';q=', $lang, 2);
75
if (count($div) < 2) {
0 commit comments