nettoyage du dossier data lors d'un import

This commit is contained in:
Fred Tempez 2021-09-14 21:10:21 +02:00
parent b00e4ed91e
commit 6f663ec3fe

View File

@ -340,6 +340,7 @@ class config extends common {
$_SESSION['KEEP_USERS'] = $this->getInput('configRestoreImportUser', helper::FILTER_BOOLEAN); $_SESSION['KEEP_USERS'] = $this->getInput('configRestoreImportUser', helper::FILTER_BOOLEAN);
} }
// Extraire le zip ou 'site/' // Extraire le zip ou 'site/'
$this->removeDir(self::DATA_DIR);
$success = $zip->extractTo( 'site/' ); $success = $zip->extractTo( 'site/' );
// Fermer l'archive // Fermer l'archive
$zip->close(); $zip->close();