Case insensitive Lang Detection fix #1328

This commit is contained in:
Brice Maron 2013-01-31 21:55:51 +01:00
parent 5bf7791b42
commit 17f94de19b
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}