From cec9f33168e2b420034a0069a211262999e9ea02 Mon Sep 17 00:00:00 2001 From: Cameron Date: Fri, 8 May 2015 13:04:23 -0700 Subject: [PATCH] Forum: pagination fix. --- e107_plugins/forum/forum.css | 1 + e107_plugins/forum/forum_viewtopic.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/e107_plugins/forum/forum.css b/e107_plugins/forum/forum.css index a304d41e0..90c47ed29 100644 --- a/e107_plugins/forum/forum.css +++ b/e107_plugins/forum/forum.css @@ -4,6 +4,7 @@ #poll.tab-pane .form-group { margin-left: 0; margin-right:0} +#forum-viewtopic { margin-top: 15px } #forum-viewtopic li.forum-viewtopic-post { border-top:1px solid #EEE; padding:15px 10px } #forum-viewtopic li.forum-viewtopic-post:nth-child(odd) { background: #F5F5F5 } #forum-viewtopic li ul.thumbnails { margin-top:15px } diff --git a/e107_plugins/forum/forum_viewtopic.php b/e107_plugins/forum/forum_viewtopic.php index 6f4bdeba0..9c5f2b42f 100644 --- a/e107_plugins/forum/forum_viewtopic.php +++ b/e107_plugins/forum/forum_viewtopic.php @@ -668,7 +668,7 @@ class e107ForumThread exit; } - $totalPosts = $this->threadInfo['thread_total_replies'] + 1; // add 1 for the original post . ie. not a reply. + $totalPosts = $this->threadInfo['thread_total_replies']; // + 1; // add 1 for the original post . ie. not a reply. $this->pages = ceil(($totalPosts) / $this->perPage); $this->noInc = false; }