v1.18.x
Julian Lam 9 years ago
parent 7b49dc9061
commit cc4997aeca

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 7.0 KiB

@ -151,10 +151,10 @@ middleware.isAdmin = function(req, res, next) {
}; };
middleware.routeTouchIcon = function(req, res) { middleware.routeTouchIcon = function(req, res) {
if (meta.config['brand:logo'] && validator.isURL(meta.config['brand:logo'])) { if (meta.config['brand:touchIcon'] && validator.isURL(meta.config['brand:touchIcon'])) {
return res.redirect(meta.config['brand:logo']); return res.redirect(meta.config['brand:touchIcon']);
} else { } else {
return res.sendFile(path.join(__dirname, '../../public', meta.config['brand:logo'] || '/logo.png'), { return res.sendFile(path.join(__dirname, '../../public', meta.config['brand:touchIcon'] || '/logo.png'), {
maxAge: app.enabled('cache') ? 5184000000 : 0 maxAge: app.enabled('cache') ? 5184000000 : 0
}); });
} }

Loading…
Cancel
Save