mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
reorganize site settings a bit
This commit is contained in:
@ -58,7 +58,7 @@ class TopicsController < ApplicationController
|
||||
end
|
||||
|
||||
page = params[:page].to_i
|
||||
if (page < 0) || ((page - 1) * SiteSetting.posts_per_page > @topic_view.topic.highest_post_number)
|
||||
if (page < 0) || ((page - 1) * SiteSetting.posts_chunksize > @topic_view.topic.highest_post_number)
|
||||
raise Discourse::NotFound
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user