diff --git a/src/webserver.js b/src/webserver.js index 1771b234ce..1794e4453e 100644 --- a/src/webserver.js +++ b/src/webserver.js @@ -303,7 +303,7 @@ module.exports.server = server; async.each(themes, function(themeObj, next) { if (themeObj.screenshot) { - screenshotPath = path.join(__dirname, nconf.get('themes_dir'), themeObj.id, themeObj.screenshot); + screenshotPath = path.join(nconf.get('themes_dir'), themeObj.id, themeObj.screenshot); (function(id, path) { fs.exists(path, function(exists) { if (exists) {