forked from e621ng/e621ng
changes to limit
This commit is contained in:
parent
9872d3d455
commit
966962cf80
@ -5,7 +5,7 @@ module PostSets
|
||||
def initialize(tags, page = 1, per_page = nil)
|
||||
@tag_array = Tag.scan_query(tags)
|
||||
@page = page
|
||||
@per_page = (per_page || ::Post.records_per_page).to_i
|
||||
@per_page = (per_page || Danbooru.config.posts_per_page).to_i
|
||||
@per_page = 200 if @per_page > 200
|
||||
end
|
||||
|
||||
|
@ -7,7 +7,7 @@ module Danbooru
|
||||
|
||||
module ClassMethods
|
||||
def paginate(page, options = {})
|
||||
@paginator_options = options
|
||||
@paginator_options = options || {}
|
||||
|
||||
if use_sequential_paginator?(page)
|
||||
paginate_sequential(page)
|
||||
|
Loading…
Reference in New Issue
Block a user