From b23373c26596671194f859d7dc118a2181fe85db Mon Sep 17 00:00:00 2001 From: barisusakli Date: Mon, 20 Oct 2014 16:14:31 -0400 Subject: [PATCH] parseInt maintenance mode --- src/middleware/middleware.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middleware/middleware.js b/src/middleware/middleware.js index fb0ad3937e..7962fbc129 100644 --- a/src/middleware/middleware.js +++ b/src/middleware/middleware.js @@ -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); });