Skip to content

Node.js based forum software built for the modern web

#2278

psychobunny1eb1eb6844c2
diff --git a/src/middleware/index.js b/src/middleware/index.js
index 3758c0a712..6d8ab06c25 100644
--- a/src/middleware/index.js
+++ b/src/middleware/index.js
@@ -46,7 +46,7 @@ function routeCurrentTheme(app, themeId, themesData) {
meta.themes.setPath(themeObj);
}
-function setupFavicon() {
+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));
@@ -69,7 +69,7 @@ module.exports = function(app, data) {
app.use(compression());
- setupFavicon();
+ setupFavicon(app);
app.use(relativePath + '/apple-touch-icon', middleware.routeTouchIcon);