|
|
@ -465,10 +465,12 @@ middleware.maintenanceMode = function(req, res, next) {
|
|
|
|
res.status(503);
|
|
|
|
res.status(503);
|
|
|
|
|
|
|
|
|
|
|
|
if (!isApiRoute.test(req.url)) {
|
|
|
|
if (!isApiRoute.test(req.url)) {
|
|
|
|
middleware.buildHeader(req, res, function() {
|
|
|
|
middleware.applyCSRF(req, res, function() {
|
|
|
|
res.render('maintenance', {
|
|
|
|
middleware.buildHeader(req, res, function() {
|
|
|
|
site_title: meta.config.title || 'NodeBB',
|
|
|
|
res.render('maintenance', {
|
|
|
|
message: meta.config.maintenanceModeMessage
|
|
|
|
site_title: meta.config.title || 'NodeBB',
|
|
|
|
|
|
|
|
message: meta.config.maintenanceModeMessage
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|