From 82904b93025759c869892f5f3e6c0108eda083e0 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Fri, 2 Aug 2024 15:48:31 +0700 Subject: [PATCH] check master or main --- system/controllers/pluginmanager.php | 3 +++ version.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/system/controllers/pluginmanager.php b/system/controllers/pluginmanager.php index 011356b3..75ff050e 100644 --- a/system/controllers/pluginmanager.php +++ b/system/controllers/pluginmanager.php @@ -121,6 +121,9 @@ switch ($action) { $zip->extractTo($cache); $zip->close(); $folder = $cache . DIRECTORY_SEPARATOR . $plugin . '-main' . DIRECTORY_SEPARATOR; + if(!file_exists($folder)) { + $folder = $cache . DIRECTORY_SEPARATOR . $plugin . '-master' . DIRECTORY_SEPARATOR; + } $success = 0; if (file_exists($folder . 'plugin')) { File::copyFolder($folder . 'plugin' . DIRECTORY_SEPARATOR, $PLUGIN_PATH . DIRECTORY_SEPARATOR); diff --git a/version.json b/version.json index d6bb4b68..a67cb5d6 100644 --- a/version.json +++ b/version.json @@ -1,3 +1,3 @@ { - "version": "2024.8.1.3" + "version": "2024.8.2" } \ No newline at end of file