mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-02 10:31:23 +01:00
wrap saving of url_parsed in conditional, since url isn't set during setup
This commit is contained in:
4
app.js
4
app.js
@@ -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')));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user