mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-26 11:21:03 +02:00
backport #5080
This commit is contained in:
committed by
GitHub
parent
1cf07a6fc5
commit
a9d69c4779
@@ -129,7 +129,7 @@ function setupExpressApp(app) {
|
||||
}
|
||||
|
||||
function setupFavicon(app) {
|
||||
var faviconPath = path.join(__dirname, '../../', 'public', meta.config['brand:favicon'] ? meta.config['brand:favicon'] : 'favicon.ico');
|
||||
var faviconPath = path.join(nconf.get('base_dir'), 'public', meta.config['brand:favicon'] ? meta.config['brand:favicon'] : 'favicon.ico');
|
||||
if (file.existsSync(faviconPath)) {
|
||||
app.use(nconf.get('relative_path'), favicon(faviconPath));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user