mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 22:45:46 +01:00
closes #3002
This commit is contained in:
@@ -49,8 +49,7 @@ searchController.search = function(req, res, next) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
var pageCount = Math.max(1, Math.ceil(results.matchCount / 10));
|
||||
results.pagination = pagination.create(page, pageCount, req.query);
|
||||
results.pagination = pagination.create(page, results.pageCount, req.query);
|
||||
results.showAsPosts = !req.query.showAs || req.query.showAs === 'posts';
|
||||
results.showAsTopics = req.query.showAs === 'topics';
|
||||
results.breadcrumbs = breadcrumbs;
|
||||
|
||||
Reference in New Issue
Block a user