[Pkg-owncloud-commits] [owncloud] 299/394: Fix the loop to search al the available languages, not only the las element.
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:12:34 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.
commit 7691176c285cf839089801cf6460f2c9fd5dc7ae
Author: Sergi Almacellas Abellana <sergi at koolpi.com>
Date: Sun Dec 9 20:21:04 2012 +0100
Fix the loop to search al the available languages, not only the las element.
---
lib/l10n.php | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/l10n.php b/lib/l10n.php
index a7c1bf2..e239d7e 100644
--- a/lib/l10n.php
+++ b/lib/l10n.php
@@ -283,10 +283,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;
+ }
}
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list