This commit is contained in:
albert
2013-01-14 16:46:35 -05:00
parent c327653394
commit 468428d67d

View File

@@ -38,7 +38,7 @@ module PostSets
raise SearchError.new("Upgrade your account to search more than two tags at once")
end
@posts ||= ::Post.tag_match(tag_string).paginate(page, :count => ::Post.fast_count(tag_string), :limit => :per_page)
@posts ||= ::Post.tag_match(tag_string).paginate(page, :count => ::Post.fast_count(tag_string), :limit => per_page)
rescue ::Post::SearchError
@posts = ::Post.where("false")
end