]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/diary_entry_controller.rb
Use deliver_later for all email sending
[rails.git] / app / controllers / diary_entry_controller.rb
index 723fff17ec0e885c129087e003c343bfcf748bcd..6a3ec67551fe416f47099c22d1c2ff363470f11b 100644 (file)
@@ -65,7 +65,7 @@ class DiaryEntryController < ApplicationController
 
       # Notify current subscribers of the new comment
       @entry.subscribers.visible.each do |user|
-        Notifier.diary_comment_notification(@diary_comment, user).deliver_now if current_user != user
+        Notifier.diary_comment_notification(@diary_comment, user).deliver_later if current_user != user
       end
 
       # Add the commenter to the subscribers if necessary
@@ -234,7 +234,7 @@ class DiaryEntryController < ApplicationController
   # and return them to the user page.
   def require_administrator
     unless current_user.administrator?
-      flash[:error] = t("user.filter.not_an_administrator")
+      flash[:error] = t("users.filter.not_an_administrator")
       redirect_to :action => "show"
     end
   end