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)