v1.18.x
Julian Lam 7 years ago
parent b70f328520
commit 2086a64a5e

@ -26,7 +26,7 @@ module.exports = {
} }
fs.access(sourcePath, function (err) { fs.access(sourcePath, function (err) {
if (err) { if (err || path.extname(sourcePath) === '.svg') {
skip = true; skip = true;
return setImmediate(next); return setImmediate(next);
} }
@ -46,6 +46,7 @@ module.exports = {
meta.configs.setMultiple({ meta.configs.setMultiple({
'brand:logo': path.join(nconf.get('upload_path'), 'system', path.basename(meta.config['brand:logo'])), '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); }, next);
}, },
], callback); ], callback);

Loading…
Cancel
Save