From 6f663ec3fee5525e2b39f711e03a54a1585c57b3 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Tue, 14 Sep 2021 21:10:21 +0200 Subject: [PATCH] nettoyage du dossier data lors d'un import --- core/module/config/config.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/module/config/config.php b/core/module/config/config.php index 2ab23b7e..560575d4 100644 --- a/core/module/config/config.php +++ b/core/module/config/config.php @@ -340,6 +340,7 @@ class config extends common { $_SESSION['KEEP_USERS'] = $this->getInput('configRestoreImportUser', helper::FILTER_BOOLEAN); } // Extraire le zip ou 'site/' + $this->removeDir(self::DATA_DIR); $success = $zip->extractTo( 'site/' ); // Fermer l'archive $zip->close();