mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 16:00:26 +01:00
Fixes #5474
This commit is contained in:
@@ -159,7 +159,8 @@ function setupExpressApp(app) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function setupFavicon(app) {
|
function setupFavicon(app) {
|
||||||
var faviconPath = path.join(nconf.get('base_dir'), 'public', meta.config['brand:favicon'] ? meta.config['brand:favicon'] : 'favicon.ico');
|
var faviconPath = meta.config['brand:favicon'] || 'favicon.ico';
|
||||||
|
faviconPath = path.join(nconf.get('base_dir'), 'public', faviconPath.replace(/assets\/uploads/, 'uploads'));
|
||||||
if (file.existsSync(faviconPath)) {
|
if (file.existsSync(faviconPath)) {
|
||||||
app.use(nconf.get('relative_path'), favicon(faviconPath));
|
app.use(nconf.get('relative_path'), favicon(faviconPath));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user