Skip to content

Commit

Permalink
Revert "fix can't change portal language"
Browse files Browse the repository at this point in the history
This reverts commit 462dc6d.
  • Loading branch information
Bilelkihal committed Nov 25, 2024
1 parent 462dc6d commit f095c59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def set_locale
cookies.permanent[:locale] = I18n.locale if cookies[:locale].nil?
logger.debug "* Locale set to '#{I18n.locale}'"

I18n.locale = portal_lang unless portal_language_enabled?(I18n.locale)
I18n.locale = portal_lang if portal_language_enabled?(I18n.locale)

session[:locale] = I18n.locale
end
Expand Down Expand Up @@ -430,7 +430,7 @@ def json_link(url, optional_params)
optional_params_str = filtered_params.map { |param, value| "#{param}=#{value}" }.join("&")
return base_url + optional_params_str + "&apikey=#{$API_KEY}"
end

def set_federated_portals
RequestStore.store[:federated_portals] = params[:portals]&.split(',')
end
Expand Down

0 comments on commit f095c59

Please sign in to comment.