Permalink
Browse files

change to 15

  • Loading branch information...
1 parent 42645da commit 8681eb6eb24a90016bf01824f6d616b48d99203d @xdite committed Jan 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/topics_controller.rb
@@ -8,7 +8,7 @@ class TopicsController < ApplicationController
before_filter :init_base_breadcrumb
def index
- @topics = Topic.last_actived.limit(15).includes(:node,:user, :last_reply_user)
+ @topics = Topic.last_actived.limit(15).includes(:node,:user, :last_reply_user).paginate(:page => params[:page], :per_page => 15)
set_seo_meta("","#{Setting.app_name}#{t("menu.topics")}")
drop_breadcrumb(t("topics.hot_topic"))
#render :stream => true

0 comments on commit 8681eb6

Please sign in to comment.