parseInt maintenance mode

v1.18.x
barisusakli 10 years ago
parent f15631c3e1
commit b23373c265

@ -378,7 +378,7 @@ middleware.renderHeader = function(req, res, callback) {
templateValues.user = results.user;
templateValues.customCSS = results.customCSS;
templateValues.customJS = results.customJS;
templateValues.maintenanceHeader = meta.config.maintenanceMode === '1' && !results.isAdmin;
templateValues.maintenanceHeader = parseInt(meta.config.maintenanceMode, 10) === 1 && !results.isAdmin;
app.render('header', templateValues, callback);
});

Loading…
Cancel
Save