Make setting of user_preferred_languages work.
authorTom Hughes <tom@compton.nu>
Sun, 31 May 2009 15:22:38 +0000 (15:22 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 31 May 2009 15:22:38 +0000 (15:22 +0000)
vendor/plugins/http_accept_language/lib/http_accept_language.rb

index f181c9f4309287d6aac017cdf9723ac7415aa0f6..85ee89c95d8885f80bff36be063efd4d429b8a9e 100644 (file)
@@ -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.