diff options
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/boards_controller.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/boards_controller.rb b/app/controllers/boards_controller.rb index 2a90e9857..3a8b021a3 100644 --- a/app/controllers/boards_controller.rb +++ b/app/controllers/boards_controller.rb @@ -32,7 +32,6 @@ class BoardsController < ApplicationController if @boards.size == 1 @board = @boards.first show - render :action => 'show' end end @@ -46,7 +45,7 @@ class BoardsController < ApplicationController :include => [:author, {:last_reply => :author}], :limit => @topic_pages.items_per_page, :offset => @topic_pages.current.offset - render :action => 'show', :layout => false if request.xhr? + render :action => 'show', :layout => !request.xhr? end verify :method => :post, :only => [ :destroy ], :redirect_to => { :action => :index } |