|
|
@ -28,11 +28,11 @@ categoriesController.recent = function(req, res, next) {
|
|
|
|
data.breadcrumbs = helpers.buildBreadcrumbs([{text: '[[recent:title]]'}]);
|
|
|
|
data.breadcrumbs = helpers.buildBreadcrumbs([{text: '[[recent:title]]'}]);
|
|
|
|
|
|
|
|
|
|
|
|
plugins.fireHook('filter:recent.build', {req: req, res: res, templateData: data}, function(err, data) {
|
|
|
|
plugins.fireHook('filter:recent.build', {req: req, res: res, templateData: data}, function(err, data) {
|
|
|
|
if (err) {
|
|
|
|
if (err) {
|
|
|
|
return next(err);
|
|
|
|
return next(err);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
res.render('recent', data.templateData);
|
|
|
|
res.render('recent', data.templateData);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|