no longer requiring that interstitial.data be set in interstitial data

... lol that commit message makes no sense.
v1.18.x
Julian Lam 9 years ago
parent 3e8e2f0e58
commit fafcdf8320

@ -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');

Loading…
Cancel
Save