mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-07-22 11:54:36 +02:00
themes support
This commit is contained in:
parent
4e1a10d814
commit
afdd7edafa
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue