Autodetection of language is working now

This commit is contained in:
Jakob Sack 2011-06-19 23:46:59 +02:00
parent ad893f2bea
commit 99ae7cd477
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ class OC_L10N{
$accepted_languages = preg_split( '/,\s*/', $_SERVER['HTTP_ACCEPT_LANGUAGE'] );
foreach( $accepted_languages as $i ){
$temp = explode( ';', $i );
if( array_key_exists( $temp[0], $available )){
if( array_search( $temp[0], $available ) !== false ){
return $temp[0];
}
}