Case insensitive Lang Detection fix #1328
This commit is contained in:
parent
5bf7791b42
commit
17f94de19b
|
@ -287,7 +287,7 @@ class OC_L10N{
|
|||
}
|
||||
|
||||
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
|
||||
$accepted_languages = preg_split('/,\s*/', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
||||
$accepted_languages = preg_split('/,\s*/', strtolower($_SERVER['HTTP_ACCEPT_LANGUAGE']));
|
||||
if(is_array($app)) {
|
||||
$available = $app;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue