mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 08:25:46 +01:00
parseInt maintenance mode
This commit is contained in:
@@ -378,7 +378,7 @@ middleware.renderHeader = function(req, res, callback) {
|
|||||||
templateValues.user = results.user;
|
templateValues.user = results.user;
|
||||||
templateValues.customCSS = results.customCSS;
|
templateValues.customCSS = results.customCSS;
|
||||||
templateValues.customJS = results.customJS;
|
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);
|
app.render('header', templateValues, callback);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user