mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-05 15:20:39 +01:00
closes #6424
This commit is contained in:
@@ -30,7 +30,7 @@ sitemap.render = function (callback) {
|
||||
db.getObjectField('global', 'topicCount', next);
|
||||
},
|
||||
function (topicCount, next) {
|
||||
var numPages = Math.max(0, topicCount / topicsPerPage);
|
||||
var numPages = Math.ceil(Math.max(0, topicCount / topicsPerPage));
|
||||
for (var x = 1; x <= numPages; x += 1) {
|
||||
returnData.topics.push(x);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user