mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Autodetection of language is working now
This commit is contained in:
parent
ad893f2bea
commit
99ae7cd477
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue