X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/1be7bb8a047ccad1cd49a5e6e623f6a12d42b918..e3693d487a8da3743d53e90926e8064ed8bf34c7:/app/controllers/diary_entry_controller.rb diff --git a/app/controllers/diary_entry_controller.rb b/app/controllers/diary_entry_controller.rb index 388df43fe..16186314f 100644 --- a/app/controllers/diary_entry_controller.rb +++ b/app/controllers/diary_entry_controller.rb @@ -32,8 +32,6 @@ class DiaryEntryController < ApplicationController if @user != @diary_entry.user redirect_to :controller => 'diary_entry', :action => 'view', :id => params[:id] elsif params[:diary_entry] - params[:diary_entry][:language] = Language.find_by_code(params[:diary_entry][:language]) - params[:diary_entry][:language] = Language.find_by_code("en") if params[:diary_entry][:language].nil? if @diary_entry.update_attributes(params[:diary_entry]) redirect_to :controller => 'diary_entry', :action => 'view', :id => params[:id] end @@ -65,6 +63,7 @@ class DiaryEntryController < ApplicationController :order => 'created_at DESC', :per_page => 20) else + @title = t'diary_entry.no_such_user.title' @not_found_user = params[:display_name] render :action => 'no_such_user', :status => :not_found