mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 15:35:47 +01:00
added logic for hiding logo if none is set, preventing crash on startup if no logo is set
This commit is contained in:
@@ -35,7 +35,7 @@ Emailer.registerApp = function (expressApp) {
|
||||
url: nconf.get('url'),
|
||||
site_title: meta.config.title || 'NodeBB',
|
||||
logo: {
|
||||
src: nconf.get('url') + meta.config['brand:logo'].replace('.png', '-x50.png'),
|
||||
src: meta.config['brand:logo'] ? nconf.get('url') + meta.config['brand:logo'].replace('.png', '-x50.png') : null,
|
||||
height: meta.config['brand:emailLogo:height'],
|
||||
width: meta.config['brand:emailLogo:width'],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user