]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fixed: Browser language preference's not used when using Google Chrome
authorCraig Andrews <candrews@integralblue.com>
Tue, 21 Jul 2009 19:10:00 +0000 (15:10 -0400)
committerCraig Andrews <candrews@integralblue.com>
Tue, 21 Jul 2009 19:10:00 +0000 (15:10 -0400)
Thanks bambeeq

http://laconi.ca/trac/ticket/620

lib/language.php

index 3ea3dd2aa0a5237412a980fb1266fce75d10e9e9..9ad2d31bd4b7cd21e75076cb102e9d97807ea2b3 100644 (file)
@@ -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