mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 18:46:01 +01:00
closes #3663
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
var meta = require('../meta'),
|
||||
db = require('../database'),
|
||||
file = require('../file'),
|
||||
auth = require('../routes/authentication'),
|
||||
|
||||
path = require('path'),
|
||||
@@ -21,7 +22,7 @@ var middleware = {};
|
||||
|
||||
function setupFavicon(app) {
|
||||
var faviconPath = path.join(__dirname, '../../', 'public', meta.config['brand:favicon'] ? meta.config['brand:favicon'] : 'favicon.ico');
|
||||
if (fs.existsSync(faviconPath)) {
|
||||
if (file.existsSync(faviconPath)) {
|
||||
app.use(nconf.get('relative_path'), favicon(faviconPath));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user