From c3c5f5ab926fa768e5b8e879087246b6447932d2 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 13 Aug 2013 12:10:07 -0400 Subject: [PATCH] closed #165 - issue where the site title was "undefined" if no title was set in the config, parenthesis issue --- src/meta.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meta.js b/src/meta.js index aa2181f0d0..772230d94a 100644 --- a/src/meta.js +++ b/src/meta.js @@ -81,7 +81,7 @@ var utils = require('./../public/src/utils.js'), var title; if (err) title = global.config.title || 'NodeBB'; - else title = (values.notifCount > 0 ? '(' + values.notifCount + ') ' : '') + (values.title ? values.title + ' | ' : '') + global.config.title || 'NodeBB'; + else title = (values.notifCount > 0 ? '(' + values.notifCount + ') ' : '') + (values.title ? values.title + ' | ' : '') + (global.config.title || 'NodeBB'); callback(null, title); });