summaryrefslogtreecommitdiffstats
path: root/lib/l10n.php
diff options
context:
space:
mode:
authorSergi Almacellas Abellana <sergi@koolpi.com>2012-12-09 20:21:04 +0100
committerSergi Almacellas Abellana <sergi@koolpi.com>2012-12-09 20:21:04 +0100
commit7b0e2b348b3ad5b4351c37cc91531718773c3864 (patch)
tree69968c18fc78fbb5474570b57f853cca984e74c9 /lib/l10n.php
parentb810e42cc70beb817de466835dcdc9de9d092bdc (diff)
downloadnextcloud-server-7b0e2b348b3ad5b4351c37cc91531718773c3864.tar.gz
nextcloud-server-7b0e2b348b3ad5b4351c37cc91531718773c3864.zip
Fix the loop to search al the available languages, not only the las element.
Diffstat (limited to 'lib/l10n.php')
-rw-r--r--lib/l10n.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/l10n.php b/lib/l10n.php
index 4f9c3a0edef..b83d8ff86db 100644
--- a/lib/l10n.php
+++ b/lib/l10n.php
@@ -298,10 +298,10 @@ class OC_L10N{
if( ($key = array_search($temp[0], $available)) !== false) {
return $available[$key];
}
- }
- foreach($available as $l) {
- if ( $temp[0] == substr($l,0,2) ) {
- return $l;
+ foreach($available as $l) {
+ if ( $temp[0] == substr($l,0,2) ) {
+ return $l;
+ }
}
}
}