Skip to content

Node.js based forum software built for the modern web

fixed missing currentPage

barisusakli974333dbc33b
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);
});
};