mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
array syntax fix
This commit is contained in:
parent
3bd2d0a654
commit
b62aba465b
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ function detect_user_language($fallback='en') {
|
|||
|
||||
// Sort Accept-Language by `q` value
|
||||
$accept_langs = explode(',', preg_replace('/\s/', '', strtolower($_SERVER['HTTP_ACCEPT_LANGUAGE'])));
|
||||
$accept_langs_sorted = [];
|
||||
$accept_langs_sorted = array() ;
|
||||
foreach ($accept_langs as $lang) {
|
||||
$div = explode(';q=', $lang, 2);
|
||||
if (count($div) < 2) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue