From afdd7edafae30fd89fa68cecdebfd5eab34c139a Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Fri, 19 Jan 2024 09:07:48 +0700 Subject: [PATCH] themes support --- system/controllers/codecanyon.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/system/controllers/codecanyon.php b/system/controllers/codecanyon.php index 73647be9..437caf75 100644 --- a/system/controllers/codecanyon.php +++ b/system/controllers/codecanyon.php @@ -69,9 +69,11 @@ switch ($action) { $zip->close(); //moving if (file_exists($target . 'plugin')) { - File::copyFolder($target, File::pathFixer('system/plugin/'), ['license.txt', 'changelog.txt', 'install.txt']); + File::copyFolder($target . 'plugin', File::pathFixer('system/plugin/'), ['license.txt', 'changelog.txt', 'install.txt']); } else if (file_exists($target . 'paymentgateway')) { - File::copyFolder($target, File::pathFixer('system/plugin/'), ['license.txt', 'changelog.txt', 'install.txt']); + File::copyFolder($target . 'paymentgateway', File::pathFixer('system/plugin/'), ['license.txt', 'changelog.txt', 'install.txt']); + } else if (file_exists($target . 'themes')) { + File::copyFolder($target . 'themes', File::pathFixer('ui/themes/'), ['license.txt', 'changelog.txt', 'install.txt']); } //Cleaning File::deleteFolder($target);