- Fixes issue where the served path for the favicon was incorrect (included relative path when one was not needed)
- Also fixes issue where favicons were just plain not served for subfolder installations
- Fixed unsemantic HTML in ACP/General regarding Site Logo and Favicon fieldsets
This commit is contained in:
Julian Lam
2015-08-17 11:31:31 -04:00
parent c70267bd23
commit 08fb30378a
3 changed files with 26 additions and 15 deletions

View File

@@ -22,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)) {
app.use(favicon(faviconPath));
app.use(nconf.get('relative_path'), favicon(faviconPath));
}
}