Skip to content

Commit f845ccd

Browse files
authored
SA: #11501 - fix string formatting (#11563)
1 parent 0889fcf commit f845ccd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/settings_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def change_locale
66
cookies.permanent[:plots2_locale] = lang
77
I18n.locale = lang
88
if request.referer
9-
redirect_to request.referer + '?_=' + Time.now.to_i.to_s
9+
redirect_to "#{request.referer}?_=#{Time.now.to_i}"
1010
else
1111
flash[:notice] = "Language changed to '#{I18n.locale}'"
1212
if Rails.env == "development"

0 commit comments

Comments
 (0)