wrap saving of url_parsed in conditional, since url isn't set during setup

v1.18.x
Julian Lam 9 years ago
parent 60ea7d5121
commit ebb50160cb

@ -104,7 +104,9 @@ function loadConfig() {
nconf.set('core_templates_path', path.join(__dirname, 'src/views'));
nconf.set('base_templates_path', path.join(nconf.get('themes_path'), 'nodebb-theme-persona/templates'));
nconf.set('url_parsed', url.parse(nconf.get('url')));
if (nconf.get('url')) {
nconf.set('url_parsed', url.parse(nconf.get('url')));
}
}

Loading…
Cancel
Save