mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-28 22:08:09 +02:00
check master or main
This commit is contained in:
parent
face1dfa57
commit
82904b9302
2 changed files with 4 additions and 1 deletions
|
@ -121,6 +121,9 @@ switch ($action) {
|
||||||
$zip->extractTo($cache);
|
$zip->extractTo($cache);
|
||||||
$zip->close();
|
$zip->close();
|
||||||
$folder = $cache . DIRECTORY_SEPARATOR . $plugin . '-main' . DIRECTORY_SEPARATOR;
|
$folder = $cache . DIRECTORY_SEPARATOR . $plugin . '-main' . DIRECTORY_SEPARATOR;
|
||||||
|
if(!file_exists($folder)) {
|
||||||
|
$folder = $cache . DIRECTORY_SEPARATOR . $plugin . '-master' . DIRECTORY_SEPARATOR;
|
||||||
|
}
|
||||||
$success = 0;
|
$success = 0;
|
||||||
if (file_exists($folder . 'plugin')) {
|
if (file_exists($folder . 'plugin')) {
|
||||||
File::copyFolder($folder . 'plugin' . DIRECTORY_SEPARATOR, $PLUGIN_PATH . DIRECTORY_SEPARATOR);
|
File::copyFolder($folder . 'plugin' . DIRECTORY_SEPARATOR, $PLUGIN_PATH . DIRECTORY_SEPARATOR);
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
{
|
{
|
||||||
"version": "2024.8.1.3"
|
"version": "2024.8.2"
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue