mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-24 00:09:41 +01:00
no longer requiring that interstitial.data be set in interstitial data
... lol that commit message makes no sense.
This commit is contained in:
@@ -199,7 +199,7 @@ Controllers.registerInterstitial = function(req, res, next) {
|
||||
}
|
||||
|
||||
var renders = data.interstitials.map(function(interstitial) {
|
||||
return async.apply(req.app.render.bind(req.app), interstitial.template, interstitial.data);
|
||||
return async.apply(req.app.render.bind(req.app), interstitial.template, interstitial.data || {});
|
||||
});
|
||||
var errors = req.flash('error');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user