fixed to use postsPerPage

v1.18.x
barisusakli 11 years ago
parent a400e5de81
commit 61ae01543c

@ -39,8 +39,8 @@ topicsController.get = function(req, res, next) {
return next(err); return next(err);
} }
var start = (page - 1) * settings.topicsPerPage, var start = (page - 1) * settings.postsPerPage,
end = start + settings.topicsPerPage - 1; end = start + settings.postsPerPage - 1;
topics.getTopicWithPosts(tid, uid, start, end, function (err, topicData) { topics.getTopicWithPosts(tid, uid, start, end, function (err, topicData) {
if (topicData) { if (topicData) {

Loading…
Cancel
Save