Skip to content

Commit 45b85d7

Browse files
committed
Use language template from language field
1 parent 4cbb9a7 commit 45b85d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/mailers/user_mailer.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ def email_confirmation(user, origin = nil, language = nil)
1313
subject = "#{origin}: #{subject}" if origin
1414
if origin
1515
origin_name = origin.downcase.tr(' ', '_').gsub(/[\.\/]/, '')
16+
origin_name += "_#{language}" if language
1617
@url = base_url + confirm_email_path(@user.id, token.token, language: language, origin: CGI.escape(origin_name))
1718
template_path = Rails.root.join('config', 'email_templates', 'user_mailer', 'email_confirmation')
1819
html_template_path = template_path.join("#{origin_name}.html.erb")

0 commit comments

Comments
 (0)