From bd9b85beb3cddc71094ec4ca63b3722417dc9aaf Mon Sep 17 00:00:00 2001 From: zefie Date: Sun, 27 Aug 2023 12:43:10 -0400 Subject: [PATCH] fix pagebuilder clipart 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 68fb37f6..73af57bc 100644 --- a/zefie_wtvp_minisrv/includes/classes/WTVAuthor.js +++ b/zefie_wtvp_minisrv/includes/classes/WTVAuthor.js @@ -471,7 +471,7 @@ this.fs.writeFile(destDir + this.wtvclient.session_store.subscriber_username + ' case "clipart": this.fs.mkdirSync(destDir + this.wtvclient.session_store.subscriber_username + '/' + pagedata.publishname + "/" + atob(thisblock.photo).substr(0, atob(thisblock.photo).lastIndexOf("/")), { recursive: true }) - this.fs.copyFile('ServiceVault/wtv-author/' + atob(thisblock.photo), destDir + this.wtvclient.session_store.subscriber_username + '/' + pagedata.publishname + "/" + atob(thisblock.photo), (err) => { + this.fs.copyFile('includes/ServiceVault/wtv-author/' + atob(thisblock.photo), destDir + this.wtvclient.session_store.subscriber_username + '/' + pagedata.publishname + "/" + atob(thisblock.photo), (err) => { if (err) throw err; }); block = `

`