From d23788ca8b47ee3df6b22f812961914e830d3fc5 Mon Sep 17 00:00:00 2001 From: Luca Date: Fri, 12 Apr 2024 18:03:03 +0200 Subject: [PATCH] =?UTF-8?q?Se=20non=20=C3=A8=20installato=20il=20modulo=20?= =?UTF-8?q?distinta=20base=20elimino=20il=20plugin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update/2_4_13.php | 1 - update/2_5_1.php | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/update/2_4_13.php b/update/2_4_13.php index 6e4fdcc76..ea04bb238 100755 --- a/update/2_4_13.php +++ b/update/2_4_13.php @@ -47,7 +47,6 @@ $files = [ 'modules\tipi_intervento\api\*', 'modules\utenti\api\*', 'templates\interventi_ordiniservizio\*', - 'modules\automezzi\*', ]; foreach ($files as $key => $value) { diff --git a/update/2_5_1.php b/update/2_5_1.php index 5a92db209..3527a6abb 100644 --- a/update/2_5_1.php +++ b/update/2_5_1.php @@ -10,3 +10,10 @@ if (empty($default)) { $adapter->is_default = 1; $adapter->save(); } + +// Se non รจ installato il modulo distinta base elimino il plugin +$fk = $database->fetchArray('SELECT * FROM `zz_plugins` WHERE `directory` = "distinta_base"'); +if (empty($fk)) { + // File e cartelle deprecate + delete(realpath(base_dir() . '/plugins/distinta_base/')); +} \ No newline at end of file