diff --git a/app/controllers/messages_controller.rb b/app/controllers/messages_controller.rb index b1da35cfc..a242587fb 100644 --- a/app/controllers/messages_controller.rb +++ b/app/controllers/messages_controller.rb @@ -37,6 +37,14 @@ class MessagesController < ApplicationController # Show a topic and its replies def show + if @course + topic_id = params[:r]?params[:r]:params[:id] + parent_id = params[:id] + url = course_boards_path(@course,:topic_id => topic_id,:parent_id=>parent_id); + redirect_to url + return; + end + @isReply = true page = params[:page] # Find the page of the requested reply diff --git a/app/views/users/_preferences.html.erb b/app/views/users/_preferences.html.erb index 995e2076e..bad60c963 100644 --- a/app/views/users/_preferences.html.erb +++ b/app/views/users/_preferences.html.erb @@ -1,6 +1,9 @@ + <%= labelled_fields_for :pref, @user.pref do |pref_fields| %> -

<%= pref_fields.check_box :hide_mail %>

-

<%= pref_fields.time_zone_select :time_zone, nil, :include_blank => true %>

-

<%= pref_fields.select :comments_sorting, [[l(:label_chronological_order), 'asc'], [l(:label_reverse_chronological_order), 'desc']] %>

+

<%= pref_fields.check_box :hide_mail %>

+

<%= pref_fields.time_zone_select :time_zone, nil, :include_blank => true %>

+

<%= pref_fields.select :comments_sorting, [[l(:label_chronological_order), 'asc'], [l(:label_reverse_chronological_order), 'desc']] %>

<% end %>