From e18dfa4b3e8d748a0522671cbaf68da63a512098 Mon Sep 17 00:00:00 2001 From: zefie Date: Sun, 30 Jul 2023 15:07:50 -0400 Subject: [PATCH] fix pagebuilder page media not copying --- zefie_wtvp_minisrv/includes/classes/WTVAuthor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zefie_wtvp_minisrv/includes/classes/WTVAuthor.js b/zefie_wtvp_minisrv/includes/classes/WTVAuthor.js index 4b60b3f6..86616ba0 100644 --- a/zefie_wtvp_minisrv/includes/classes/WTVAuthor.js +++ b/zefie_wtvp_minisrv/includes/classes/WTVAuthor.js @@ -857,7 +857,7 @@ html += `">next page } for (let i = 0; i < this.stylemedia.length; i++) { this.fs.mkdirSync(destDir + this.wtvclient.session_store.subscriber_username + '/' + publishname + this.stylemedia[i].substr(0, this.stylemedia[i].lastIndexOf("/")), { recursive: true }) - this.fs.copyFile('ServiceVault/wtv-author' + this.stylemedia[i], destDir + this.wtvclient.session_store.subscriber_username + '/' + publishname + this.stylemedia[i], (err) => { + this.fs.copyFile('includes/ServiceVault/wtv-author' + this.stylemedia[i], destDir + this.wtvclient.session_store.subscriber_username + '/' + publishname + this.stylemedia[i], (err) => { if (err) throw err; }); }