summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMrYummy <elemental428@gmail.com>2017-07-02 23:23:24 -0400
committerGitHub <noreply@github.com>2017-07-02 23:23:24 -0400
commit9b64c2c6d926c4debec7477b0d042ad076bec391 (patch)
treeb1a999c95e24c81253db3116e39b634510218564
parent170fba42dbceeed52a7335fedb4696fa978e9cbe (diff)
Thread index now counts all threads on all pages
-rw-r--r--app/views/forumthreads/index.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/forumthreads/index.html.erb b/app/views/forumthreads/index.html.erb
index 18b9ef4..bd68e29 100644
--- a/app/views/forumthreads/index.html.erb
+++ b/app/views/forumthreads/index.html.erb
@@ -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