Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Sack <kde@jakobsack.de>2011-06-20 01:46:59 +0400
committerJakob Sack <kde@jakobsack.de>2011-06-20 01:46:59 +0400
commit99ae7cd47777f7d7176194d4caced9036fcb1f46 (patch)
tree7faf11a2a372a728a79032be19691c9ab92a1ee3 /lib/l10n.php
parentad893f2bea1f56046a5b09601ae42ae3b82a8b9b (diff)
Autodetection of language is working now
Diffstat (limited to 'lib/l10n.php')
-rw-r--r--lib/l10n.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/l10n.php b/lib/l10n.php
index 8a7ff9d8535..f760d78c72b 100644
--- a/lib/l10n.php
+++ b/lib/l10n.php
@@ -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];
}
}