Browse Source

Adds instance name to the security notification subject (#21421).

git-svn-id: http://svn.redmine.org/redmine/trunk@15269 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/3.3.0
Jean-Philippe Lang 8 years ago
parent
commit
09197a22e2
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      app/models/mailer.rb

+ 2
- 2
app/models/mailer.rb View 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

Loading…
Cancel
Save