]> source.dussan.org Git - redmine.git/commitdiff
Adds instance name to the security notification subject (#21421).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 20 Mar 2016 07:49:15 +0000 (07:49 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 20 Mar 2016 07:49:15 +0000 (07:49 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@15269 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/mailer.rb

index bd242004082b3685b76c8d305b9a4cf95ea6ecea..dba3107eda8f59ff0a6249502aaa24e22d3039b3 100644 (file)
@@ -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