From: Tom Hughes Date: Sun, 31 May 2009 15:22:38 +0000 (+0000) Subject: Make setting of user_preferred_languages work. X-Git-Tag: live~7883^2~13 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/fd62c044634cc94d227f1a80fe6296220037885f?ds=inline Make setting of user_preferred_languages work. --- diff --git a/vendor/plugins/http_accept_language/lib/http_accept_language.rb b/vendor/plugins/http_accept_language/lib/http_accept_language.rb index f181c9f43..85ee89c95 100644 --- a/vendor/plugins/http_accept_language/lib/http_accept_language.rb +++ b/vendor/plugins/http_accept_language/lib/http_accept_language.rb @@ -25,7 +25,7 @@ module HttpAcceptLanguage # Sets the user languages preference, overiding the browser # def user_preferred_languages=(languages) - @user_preferred_languages = languages.join(",") + @user_preferred_languages = languages end # Finds the locale specifically requested by the browser.