Merge pull request #3372 from jsdream/newHook2

Add 'filter:recent.build' hook
v1.18.x
Barış Soner Uşaklı 10 years ago
commit be8aac9950

@ -26,7 +26,13 @@ categoriesController.recent = function(req, res, next) {
data['feeds:disableRSS'] = parseInt(meta.config['feeds:disableRSS'], 10) === 1;
data.rssFeedUrl = nconf.get('relative_path') + '/recent.rss';
data.breadcrumbs = helpers.buildBreadcrumbs([{text: '[[recent:title]]'}]);
res.render('recent', data);
plugins.fireHook('filter:recent.build', {req: req, res: res, templateData: data}, function(err, data) {
if (err) {
return next(err);
}
res.render('recent', data.templateData);
});
});
};

Loading…
Cancel
Save