From 85778224a1215b1495306fb72807a83944f26409 Mon Sep 17 00:00:00 2001 From: saurabhbhatia Date: Thu, 12 Dec 2013 10:21:53 +0800 Subject: [PATCH] Fixed langauge system tab --- app/controllers/application_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index b137fd23..631b3e12 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -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)