Fixed issue #1969: Password reset: No such file or directory @ rb_sysopen - app/views/mailer/application_wrapper.html.erb .

This commit is contained in:
Thorsten Eckel 2018-04-23 08:59:49 +02:00
parent c2042d0595
commit 4a4deff2a7

View file

@ -152,7 +152,7 @@ Check if string is a complete html document. If not, add head and css styles.
return html if html.match?(/<html>/i)
html_email_body = File.read('app/views/mailer/application_wrapper.html.erb')
html_email_body = File.read(Rails.root.join('app', 'views', 'mailer', 'application_wrapper.html.erb').to_s)
html_email_body.gsub!('###html_email_css_font###', Setting.get('html_email_css_font'))