Skip to content

Node.js based forum software built for the modern web

fixed theme previews

Julian Lam9d8aff5e637e
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) {