[10.0.48.dev] stocke la date de backup manuel

This commit is contained in:
fredtempez 2019-10-23 22:34:13 +02:00
parent 76b96a1548
commit 2e5918d483
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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 . '"');