[10.0.48.dev] stocke la date de backup manuel
This commit is contained in:
parent
76b96a1548
commit
2e5918d483
@ -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) {
|
||||
|
@ -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 . '"');
|
||||
|
Loading…
Reference in New Issue
Block a user