Fixed langauge system tab

This commit is contained in:
saurabhbhatia 2013-12-12 10:21:53 +08:00
parent 053144dfa4
commit 85778224a1
1 changed files with 1 additions and 2 deletions

View File

@ -173,7 +173,7 @@ class ApplicationController < ActionController::Base
session[:locale] = condition ? ( session[:locale] || default_locale || browser_locale || backup_locale) : I18n.default_locale.to_s
I18n.locale = session[:locale].to_sym
@site_in_use_locales = @site.in_use_locales
@site_in_use_locales = site_locales_default_head(@site.in_use_locales)
@site_valid_locales = site_locales_default_head(@site.valid_locales)
end
@ -218,7 +218,6 @@ class ApplicationController < ActionController::Base
def site_locales_default_head(locales)
if locales[0].eql? I18n.locale.to_s
Rails.logger.info
locales
else
a = Array.new(locales)