From c5224d099ed7be41938703cebcc3c1cab34aacd2 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 22 Oct 2014 17:22:47 -0400 Subject: [PATCH] parseInt show title --- src/controllers/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/api.js b/src/controllers/api.js index baa07ffe82..6bbcb73aa4 100644 --- a/src/controllers/api.js +++ b/src/controllers/api.js @@ -15,7 +15,7 @@ apiController.getConfig = function(req, res, next) { config.relative_path = serverConfig.relative_path; config.version = pkg.version; config.siteTitle = meta.config.title || meta.config.browserTitle || 'NodeBB'; - config.showSiteTitle = meta.config.showSiteTitle === '1'; + config.showSiteTitle = parseInt(meta.config.showSiteTitle, 10) === 1; config.postDelay = meta.config.postDelay; config.minimumTitleLength = meta.config.minimumTitleLength; config.maximumTitleLength = meta.config.maximumTitleLength;