Skip to content

Commit

Permalink
SA: #11501 - fix string formatting (#11563)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamiAlavi authored Nov 18, 2022
1 parent 0889fcf commit f845ccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/settings_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def change_locale
cookies.permanent[:plots2_locale] = lang
I18n.locale = lang
if request.referer
redirect_to request.referer + '?_=' + Time.now.to_i.to_s
redirect_to "#{request.referer}?_=#{Time.now.to_i}"
else
flash[:notice] = "Language changed to '#{I18n.locale}'"
if Rails.env == "development"
Expand Down

0 comments on commit f845ccd

Please sign in to comment.