mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 00:32:52 +08:00
FIX: Email Styles were evaluated out of order
`yield` puts the content in the template right away unless explicitly `capture`'d.
This commit is contained in:
@ -26,7 +26,7 @@ module EmailHelper
|
||||
end
|
||||
|
||||
def email_html_template
|
||||
EmailStyle.new.html.sub('%{email_content}', yield).html_safe
|
||||
EmailStyle.new.html.sub('%{email_content}', capture { yield }).html_safe
|
||||
end
|
||||
|
||||
protected
|
||||
|
Reference in New Issue
Block a user