mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 03:19:10 +00:00
FIX: replace site_name in email subject with site title
This commit is contained in:
parent
8e5e3b5af8
commit
9f930125f5
@ -60,6 +60,7 @@ module Email
|
||||
def subject
|
||||
if @opts[:use_site_subject]
|
||||
subject = String.new(SiteSetting.email_subject)
|
||||
subject.gsub!("%{site_name}", @template_args[:site_name])
|
||||
subject.gsub!("%{email_prefix}", @template_args[:email_prefix])
|
||||
subject.gsub!("%{optional_re}", @opts[:add_re_to_subject] ? I18n.t('subject_re', @template_args) : '')
|
||||
subject.gsub!("%{optional_pm}", @opts[:private_reply] ? I18n.t('subject_pm', @template_args) : '')
|
||||
|
Loading…
x
Reference in New Issue
Block a user