From 04c83dbdccbf1fe96d20319eb988c07cdac3293f Mon Sep 17 00:00:00 2001 From: barisusakli Date: Tue, 4 Nov 2014 17:34:01 -0500 Subject: [PATCH] update deprecated sendfile --- src/controllers/admin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/admin.js b/src/controllers/admin.js index 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();