mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-20 14:10:15 +02:00
crash fix, res.locals.config can be undefined
This commit is contained in:
@@ -212,7 +212,7 @@ middleware.renderHeader = function(req, res, data, callback) {
|
||||
allowRegistration: registrationType === 'normal' || registrationType === 'admin-approval',
|
||||
searchEnabled: plugins.hasListeners('filter:search.query'),
|
||||
config: res.locals.config,
|
||||
relative_path: res.locals.config.relative_path
|
||||
relative_path: nconf.get('relative_path')
|
||||
};
|
||||
|
||||
templateValues.configJSON = JSON.stringify(res.locals.config);
|
||||
|
||||
Reference in New Issue
Block a user