]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/browse_controller.rb
Guard against non-numeric lat and lons in nodes and notes
[rails.git] / app / controllers / browse_controller.rb
index 5526aacca05df6de55bb8c7087662dcaea829db2..622bcadd5da137cfa648d91dee03ed9c9c5ccadd 100644 (file)
@@ -80,6 +80,7 @@ class BrowseController < ApplicationController
   def note
     @type = "note"
     @note = Note.find(params[:id])
+    @title = "#{I18n.t('browse.note.title')} | #{@note.id}"
     @next = Note.find(:first, :order => "id ASC", :conditions => [ "status != 'hidden' AND id > :id", { :id => @note.id }] )
     @prev = Note.find(:first, :order => "id DESC", :conditions => [ "status != 'hidden' AND id < :id", { :id => @note.id }] )
   rescue ActiveRecord::RecordNotFound