From da44e3f6da0ae88e6e2b9738c4c059c8c55c7c02 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Fri, 19 Jan 2024 09:08:49 +0700 Subject: [PATCH] codecanyon theme install --- system/controllers/codecanyon.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/system/controllers/codecanyon.php b/system/controllers/codecanyon.php index 437caf75..1a0c6b99 100644 --- a/system/controllers/codecanyon.php +++ b/system/controllers/codecanyon.php @@ -69,11 +69,11 @@ switch ($action) { $zip->close(); //moving if (file_exists($target . 'plugin')) { - File::copyFolder($target . 'plugin', File::pathFixer('system/plugin/'), ['license.txt', 'changelog.txt', 'install.txt']); + File::copyFolder($target . 'plugin', File::pathFixer('system/plugin/')); } else if (file_exists($target . 'paymentgateway')) { - 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']); + File::copyFolder($target . 'paymentgateway', File::pathFixer('system/plugin/')); + } else if (file_exists($target . 'theme')) { + File::copyFolder($target . 'theme', File::pathFixer('ui/themes/')); } //Cleaning File::deleteFolder($target);