1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 09:04:38 +02:00

Fixed: pagination won't show up, if forum topic has e.g 21 posts and the posts/page limit is set to 20.

This commit is contained in:
Lóna Lore
2015-12-18 09:25:12 +01:00
parent 146e74d1fe
commit d93d27a0c2
3 changed files with 24 additions and 12 deletions

View File

@@ -734,7 +734,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;
}