check master or main
This commit is contained in:
parent
face1dfa57
commit
82904b9302
@ -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…
x
Reference in New Issue
Block a user