diff --git a/core/core.php b/core/core.php index 3d6e2d9f..ee7cdf78 100644 --- a/core/core.php +++ b/core/core.php @@ -1138,8 +1138,6 @@ class core extends common { // Date du dernier backup $this->setData(['core', 'lastBackup', $lastBackup]); // Enregistre les données - //$this->saveData(); - //$this->saveData(['core', 'lastBackup', $lastBackup]); // Supprime les backups de plus de 30 jours $iterator = new DirectoryIterator(self::BACKUP_DIR); foreach($iterator as $fileInfos) { diff --git a/core/module/config/config.php b/core/module/config/config.php index 36917258..40ef9838 100755 --- a/core/module/config/config.php +++ b/core/module/config/config.php @@ -209,6 +209,8 @@ class config extends common { } } $zip->close(); + // Enregistre la date de backup manuel + $this->setData(['core', 'lastBackup', mktime(0, 0, 0)]); // Téléchargement du ZIP header('Content-Transfer-Encoding: binary'); header('Content-Disposition: attachment; filename="' . $fileName . '"');