mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
Update categories.js
This commit is contained in:
@@ -267,8 +267,7 @@ categoriesController.get = function(req, res, next) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
plugins.fireHook('filter:category.build', {req: req, res: res, templateData: data}, function(err, data) {
|
plugins.fireHook('filter:category.build', {req: req, res: res, templateData: data}, function(err, data) {
|
||||||
if (err && process.env === 'development') {
|
if (err) {
|
||||||
winston.warn(JSON.stringify(err));
|
|
||||||
return next(err);
|
return next(err);
|
||||||
}
|
}
|
||||||
res.render('category', data.templateData);
|
res.render('category', data.templateData);
|
||||||
|
|||||||
Reference in New Issue
Block a user