Fixed a bug in localization introduced by r1131 (anonymous users inherit the language of the first anonymous user).

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1144 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-02-13 20:47:27 +00:00
parent 0b6a010a12
commit 8adb320978
2 changed files with 44 additions and 0 deletions
+1
View File
@@ -59,6 +59,7 @@ class ApplicationController < ActionController::Base
end
def set_localization
User.current.language = nil unless User.current.logged?
lang = begin
if !User.current.language.blank? and GLoc.valid_languages.include? User.current.language.to_sym
User.current.language