From 09197a22e2f6305c8115be959eb87323697d6ec2 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 20 Mar 2016 07:49:15 +0000 Subject: [PATCH] Adds instance name to the security notification subject (#21421). git-svn-id: http://svn.redmine.org/redmine/trunk@15269 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/mailer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/mailer.rb b/app/models/mailer.rb index bd2420040..dba3107ed 100644 --- a/app/models/mailer.rb +++ b/app/models/mailer.rb @@ -339,7 +339,7 @@ class Mailer < ActionMailer::Base @title = options[:title] && l(options[:title]) @url = options[:url] && (options[:url].is_a?(Hash) ? url_for(options[:url]) : options[:url]) mail :to => recipients, - :subject => l(:mail_subject_security_notification) + :subject => "[#{Setting.app_title}] #{l(:mail_subject_security_notification)}" end def settings_updated(recipients, changes) @@ -347,7 +347,7 @@ class Mailer < ActionMailer::Base @changes = changes @url = url_for(controller: 'settings', action: 'index') mail :to => recipients, - :subject => l(:mail_subject_security_notification) + :subject => "[#{Setting.app_title}] #{l(:mail_subject_security_notification)}" end # Notifies admins about settings changes -- 2.39.5