mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +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);
|
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;
|
topicData.currentPage = page;
|
||||||
if(page > 1) {
|
if(page > 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user