mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Forum: pagination fix.
This commit is contained in:
@@ -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 }
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user