]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/diary_entry_controller.rb
Add 'diary_entry.no_such_entry.title' for diary entries that don't exist
[rails.git] / app / controllers / diary_entry_controller.rb
index 9471872279bc8cadce1664e44e4dc13faf6924de..7a442ac58a3744a4656b0d0498d874feb946d838 100644 (file)
@@ -131,6 +131,7 @@ class DiaryEntryController < ApplicationController
       if @entry
         @title = t 'diary_entry.view.title', :user => params[:display_name]
       else
+        @title = t 'diary_entry.no_such_entry.title', :id => params[:id]
         render :action => 'no_such_entry', :status => :not_found
       end
     else