get rid of nonsense 404.html

correct 404 handling for invalid pages
This commit is contained in:
Sam
2013-05-20 10:29:49 +10:00
parent 18b00d01d0
commit 80fb20816c
7 changed files with 20 additions and 59 deletions

View File

@@ -286,6 +286,9 @@ class TopicView
post_count = (filtered_post_ids.length - 1)
max = [max, post_count].min
return @posts = [] if min > max
min = [[min, max].min, 0].max
@index_offset = min