This commit is contained in:
barisusakli
2014-08-27 18:03:53 -04:00
parent ba4b98de0e
commit 94c765fa25
6 changed files with 123 additions and 22 deletions

View File

@@ -132,7 +132,7 @@ function filterAndRenderCategories(req, res, next, active) {
}
adminController.tags.get = function(req, res, next) {
topics.getTags(0, -1, function(err, tags) {
topics.getTags(0, 99, function(err, tags) {
if (err) {
return next(err);
}

View File

@@ -47,14 +47,13 @@ tagsController.getTag = function(req, res, next) {
};
tagsController.getTags = function(req, res, next) {
topics.getTags(0, -1, function(err, tags) {
topics.getTags(0, 99, function(err, tags) {
if (err) {
return next(err);
}
res.render('tags', {tags: tags});
res.render('tags', {tags: tags, nextStart: 100});
});
};
module.exports = tagsController;