]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/trace_controller.rb
Potlatch 1.3
[rails.git] / app / controllers / trace_controller.rb
index f78d098a0b49eaaf97775bb08d9031e18b06a7ae..2eaacbf34fc2296161116511b6e6e763f97b6282 100644 (file)
@@ -117,11 +117,11 @@ class TraceController < ApplicationController
        (@trace.public? or @trace.user == @user)
       @title = t 'trace.view.title', :name => @trace.name
     else
-      flash[:notice] = t 'trace.view.trace_not_found'
+      flash[:error] = t 'trace.view.trace_not_found'
       redirect_to :controller => 'trace', :action => 'list'
     end
   rescue ActiveRecord::RecordNotFound
-    flash[:notice] = t 'trace.view.trace_not_found'
+    flash[:error] = t 'trace.view.trace_not_found'
     redirect_to :controller => 'trace', :action => 'list'
   end
 
@@ -377,7 +377,7 @@ private
       end
     end
 
-    # Finally save the user's preferred previacy level
+    # Finally save the user's preferred privacy level
     if pref = @user.preferences.find(:first, :conditions => {:k => "gps.trace.visibility"})
       pref.v = visibility
       pref.save