From 8cc91ea6e7307c59084bbf70373e33c9cd74353f Mon Sep 17 00:00:00 2001 From: psychobunny Date: Thu, 27 Aug 2015 14:27:45 -0400 Subject: [PATCH] fix crash in middleware.renderHeader --- 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 2e3386d44c..1f28c827dd 100644 --- a/src/middleware/middleware.js +++ b/src/middleware/middleware.js @@ -282,7 +282,7 @@ middleware.renderHeader = function(req, res, data, callback) { results.user['email:confirmed'] = parseInt(results.user['email:confirmed'], 10) === 1; if (results.settings && results.settings.bootswatchSkin && results.settings.bootswatchSkin !== 'default') { - templateValues.bootswatchCSS = '//maxcdn.bootstrapcdn.com/bootswatch/latest/' + settings.bootswatchSkin + '/bootstrap.min.css'; + templateValues.bootswatchCSS = '//maxcdn.bootstrapcdn.com/bootswatch/latest/' + results.settings.bootswatchSkin + '/bootstrap.min.css'; } templateValues.browserTitle = results.title;