localyzed 0.0.0.7 → 0.0.0.8
Sign up to get free protection for your applications and to get access to all the features.
@@ -11,7 +11,7 @@ class ActionController::Base
|
|
11
11
|
|
12
12
|
# sets the locale by checking user data then request param then session data then retrieving accept language data
|
13
13
|
def set_locale
|
14
|
-
if Localyzed.user_interface.signed_in? and cl = Localyzed.user_interface.current.language and I18n.available_locales.include?(cl)
|
14
|
+
if Localyzed.user_interface && Localyzed.user_interface.signed_in? and cl = Localyzed.user_interface.current.language and I18n.available_locales.include?(cl)
|
15
15
|
locale = I18n.locale = cl
|
16
16
|
session[:locale] = locale
|
17
17
|
else
|
data/lib/localyzed/version.rb
CHANGED