Node.js based forum software built for the modern web
update deprecated sendfile
barisusakli04c83dbdccbf
diff --git a/src/controllers/admin.js b/src/controllers/admin.jsindex 4c0fe059ab..ef27006e4b 100644--- a/src/controllers/admin.js+++ b/src/controllers/admin.js@@ -335,9 +335,9 @@ adminController.themes.get = function(req, res, next) {var themeConfig = require(path.join(themeDir, 'theme.json')),screenshotPath = path.join(themeDir, themeConfig.screenshot);if (themeConfig.screenshot && fs.existsSync(screenshotPath)) {- res.sendfile(screenshotPath);+ res.sendFile(screenshotPath);} else {- res.sendfile(path.join(__dirname, '../../public/images/themes/default.png'));+ res.sendFile(path.join(__dirname, '../../public/images/themes/default.png'));}} else {return next();