1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 21:57:51 +02:00

Make forum page navigation consistent with topic nextprev

This commit is contained in:
Tijn Kuyper
2019-04-03 12:41:01 +02:00
parent 7ea518e4fa
commit 4a255ebe07

View File

@@ -1049,6 +1049,9 @@ function fpages($thread_info, $replies)
$replies = (int) $replies;
$postsPerPage = (int) $forum->prefs->get('postspage');
// Add 1 for the first post in the topic (which technically is not a reply), to make it consistent with the nextprev in the forum_viewtopic page
$replies = $replies + 1;
$pages = ceil(($replies)/$postsPerPage);