mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
fix page count
This commit is contained in:
@@ -120,7 +120,7 @@ topicsController.get = function(req, res, next) {
|
||||
return categoriesController.notAllowed(req, res);
|
||||
}
|
||||
|
||||
topicData.pageCount = Math.ceil(parseInt(postCount, 10) / settings.postsPerPage);
|
||||
topicData.pageCount = Math.ceil((postCount - 1) / settings.postsPerPage);
|
||||
|
||||
topicData.currentPage = page;
|
||||
if(page > 1) {
|
||||
|
||||
Reference in New Issue
Block a user