X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/cd2ca12d4235473cd3611b84e2a61649c17da2f6..34e3e51456774127d43408b7ab65c24f41373f62:/app/controllers/diary_entry_controller.rb diff --git a/app/controllers/diary_entry_controller.rb b/app/controllers/diary_entry_controller.rb index 741ff1500..a611c19e9 100644 --- a/app/controllers/diary_entry_controller.rb +++ b/app/controllers/diary_entry_controller.rb @@ -98,7 +98,7 @@ class DiaryEntryController < ApplicationController end else @entries = DiaryEntry.joins(:user).where(:users => { :status => ["active", "confirmed"] }) - + if params[:language] @title = t 'diary_entry.list.in_language_title', :language => Language.find(params[:language]).english_name @entries = @entries.where(:language_code => params[:language])