From c5e62f9a5844d206f5551363a073176d6126f1e6 Mon Sep 17 00:00:00 2001 From: pichalite Date: Wed, 23 Mar 2016 21:41:04 +0000 Subject: [PATCH] fixes #4454 --- src/middleware/header.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middleware/header.js b/src/middleware/header.js index 5d981ffeda..c1ed6d60c2 100644 --- a/src/middleware/header.js +++ b/src/middleware/header.js @@ -107,7 +107,7 @@ module.exports = function(app, middleware) { results.user.uid = parseInt(results.user.uid, 10); results.user['email:confirmed'] = parseInt(results.user['email:confirmed'], 10) === 1; - if (res.locals.config.bootswatchSkin !== 'default') { + if (parseInt(meta.config.disableCustomUserSkins, 10) !== 1 && res.locals.config.bootswatchSkin !== 'default') { templateValues.bootswatchCSS = '//maxcdn.bootstrapcdn.com/bootswatch/latest/' + res.locals.config.bootswatchSkin + '/bootstrap.min.css'; }