mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-19 23:32:05 +02:00
fixes #5947
This commit is contained in:
@@ -26,7 +26,7 @@ module.exports = {
|
||||
}
|
||||
|
||||
fs.access(sourcePath, function (err) {
|
||||
if (err) {
|
||||
if (err || path.extname(sourcePath) === '.svg') {
|
||||
skip = true;
|
||||
return setImmediate(next);
|
||||
}
|
||||
@@ -46,6 +46,7 @@ module.exports = {
|
||||
|
||||
meta.configs.setMultiple({
|
||||
'brand:logo': path.join(nconf.get('upload_path'), 'system', path.basename(meta.config['brand:logo'])),
|
||||
'brand:emailLogo': '/assets/uploads/system/site-logo-x50.png',
|
||||
}, next);
|
||||
},
|
||||
], callback);
|
||||
|
||||
Reference in New Issue
Block a user