closed #165 - issue where the site title was "undefined" if no title was set in the config, parenthesis issue

v1.18.x
Julian Lam 12 years ago
parent 0fef0aa582
commit c3c5f5ab92

@ -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);
});

Loading…
Cancel
Save