mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 20:45:58 +01:00
fixed theme previews
This commit is contained in:
@@ -303,7 +303,7 @@ module.exports.server = server;
|
|||||||
|
|
||||||
async.each(themes, function(themeObj, next) {
|
async.each(themes, function(themeObj, next) {
|
||||||
if (themeObj.screenshot) {
|
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) {
|
(function(id, path) {
|
||||||
fs.exists(path, function(exists) {
|
fs.exists(path, function(exists) {
|
||||||
if (exists) {
|
if (exists) {
|
||||||
|
|||||||
Reference in New Issue
Block a user