]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/notifier.rb
Add support for Piwik analytics
[rails.git] / app / models / notifier.rb
index 3644633365545cf6ef877815b6af2ff564827044..e6058d4b7374e486e51e37ce91e7b1707047c092 100644 (file)
@@ -4,6 +4,7 @@ class Notifier < ActionMailer::Base
     subject I18n.t('notifier.signup_confirm.subject')
     body :url => url_for(:host => SERVER_URL,
                          :controller => "user", :action => "confirm",
+                         :display_name => user.display_name,
                          :confirm_string => token.token)
   end
 
@@ -105,7 +106,7 @@ private
   end
 
   def from_header(name, type, id, digest)
-    if domain = APP_CONFIG['messages_domain']
+    if domain = MESSAGES_DOMAIN
       from quote_address_if_necessary("#{name} <#{type}-#{id}-#{digest[0,6]}@#{domain}>", "utf-8")
     end
   end