parseInt show title

v1.18.x
barisusakli 10 years ago
parent fd00dddd62
commit c5224d099e

@ -15,7 +15,7 @@ apiController.getConfig = function(req, res, next) {
config.relative_path = serverConfig.relative_path; config.relative_path = serverConfig.relative_path;
config.version = pkg.version; config.version = pkg.version;
config.siteTitle = meta.config.title || meta.config.browserTitle || 'NodeBB'; 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.postDelay = meta.config.postDelay;
config.minimumTitleLength = meta.config.minimumTitleLength; config.minimumTitleLength = meta.config.minimumTitleLength;
config.maximumTitleLength = meta.config.maximumTitleLength; config.maximumTitleLength = meta.config.maximumTitleLength;

Loading…
Cancel
Save