From 974333dbc33b58cc88e0bf401f0017f7b3768aaf Mon Sep 17 00:00:00 2001 From: barisusakli Date: Mon, 10 Mar 2014 18:28:34 -0400 Subject: [PATCH] fixed missing currentPage --- src/controllers/topics.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/controllers/topics.js b/src/controllers/topics.js index 4063d58f2e..b6fe70caac 100644 --- a/src/controllers/topics.js +++ b/src/controllers/topics.js @@ -48,7 +48,7 @@ topicsController.get = function(req, res, next) { return next(new Error('Topic deleted'), null); } } - + topicData.currentPage = page; next(err, topicData); }); }); @@ -139,7 +139,7 @@ topicsController.get = function(req, res, next) { href: nconf.get('url') + '/category/' + topicData.category.slug } ]; - + next(null, topicData); } ], function (err, data) { @@ -176,7 +176,6 @@ topicsController.get = function(req, res, next) { active: x === parseInt(page, 10) }); } - res.render('topic', data); }); };