mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
Merge branch '0.5.1' into hashtalk
Conflicts: src/controllers/topics.js
This commit is contained in:
@@ -91,7 +91,7 @@ topicsController.get = function(req, res, next) {
|
|||||||
postIndex = Math.max((req.params.post_index || 1) - (settings.postsPerPage + 1), 0);
|
postIndex = Math.max((req.params.post_index || 1) - (settings.postsPerPage + 1), 0);
|
||||||
}
|
}
|
||||||
} else if (!req.query.page) {
|
} else if (!req.query.page) {
|
||||||
var index = Math.max(req.params.post_index - 1, 0);
|
var index = Math.max(req.params.post_index - 1, 0) || 0;
|
||||||
page = Math.max(1, Math.ceil(index / settings.postsPerPage));
|
page = Math.max(1, Math.ceil(index / settings.postsPerPage));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user