diff options
author | Craig Andrews <candrews@integralblue.com> | 2009-07-21 15:10:00 -0400 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-07-21 15:10:00 -0400 |
commit | 52d51fad3c4716a1978553921ececee571cf9971 (patch) | |
tree | 5096b2678df946eafdbcb57643a562a303ea4b7d /lib/language.php | |
parent | 4d17c8553c80a36978a225f2bbe829cabeefc693 (diff) |
Fixed: Browser language preference's not used when using Google Chrome
Thanks bambeeq
http://laconi.ca/trac/ticket/620
Diffstat (limited to 'lib/language.php')
-rw-r--r-- | lib/language.php | 2 |
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 |