themes support

This commit is contained in:
Ibnu Maksum 2024-01-19 09:07:48 +07:00
parent 4e1a10d814
commit afdd7edafa
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5

View File

@ -69,9 +69,11 @@ switch ($action) {
$zip->close(); $zip->close();
//moving //moving
if (file_exists($target . 'plugin')) { 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')) { } 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 //Cleaning
File::deleteFolder($target); File::deleteFolder($target);