Thread index now counts all threads on all pages

This commit is contained in:
MrYummy
2017-07-02 23:23:24 -04:00
committed by GitHub
parent 170fba42db
commit 9b64c2c6d9

View File

@@ -10,7 +10,7 @@
if params[:forum]
text = "forum '#{Forum.find(params[:forum]).name}'"
if params_list.except(:forum).any?
text = "Search results in #{text} (#{@threads.length})"
text = "Search results in #{text} (#{@threads.total_count})"
else
text = text.capitalize
end