summaryrefslogtreecommitdiff
path: root/lib/language.php
diff options
context:
space:
mode:
authorEric Helgeson <erichelgeson@gmail.com>2009-07-22 10:28:17 -0500
committerEric Helgeson <erichelgeson@gmail.com>2009-07-22 10:28:17 -0500
commit829396106495a7b8090c31c383c0119912396cac (patch)
tree409fce658a5704024cb3d64121392485b2033799 /lib/language.php
parentdb19d61e68fcf8398579c2c4968e73db7f7ed93b (diff)
parentabae9379478f2b87915930be81cd7be97f12ed8f (diff)
Merge commit 'origin/0.8.x' into 0.9.x
Diffstat (limited to 'lib/language.php')
-rw-r--r--lib/language.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/language.php b/lib/language.php
index 3ea3dd2aa..9ad2d31bd 100644
--- a/lib/language.php
+++ b/lib/language.php
@@ -53,7 +53,7 @@ function client_prefered_language($httplang)
if (!empty($httplang[2][$i])) {
// if no q default to 1.0
$client_langs[$httplang[2][$i]] =
- ($httplang[6][$i]? (float) $httplang[6][$i] : 1.0);
+ ($httplang[6][$i]? (float) $httplang[6][$i] : 1.0 - ($i*0.01));
}
if (!empty($httplang[3][$i]) && empty($client_langs[$httplang[3][$i]])) {
// if a catchall default 0.01 lower