From 1147b5c5e1fff513cea77da6c0db5a7d2fa3b8a5 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Mon, 18 Mar 2024 17:50:54 +0100 Subject: [PATCH] update roling backup --- core/module/config/tool/autobackup.php | 1 - core/module/config/tool/cleanautobackup.php | 1 - 2 files changed, 2 deletions(-) diff --git a/core/module/config/tool/autobackup.php b/core/module/config/tool/autobackup.php index bb1e1fa4..52166257 100644 --- a/core/module/config/tool/autobackup.php +++ b/core/module/config/tool/autobackup.php @@ -18,7 +18,6 @@ if (isset ($_GET['key'])) { http_response_code(401); exit(); } -} else { // Création du ZIP $filter = ['backup', 'tmp']; $fileName = date('Y-m-d-H-i-s', time()) . '-rolling-backup.zip'; diff --git a/core/module/config/tool/cleanautobackup.php b/core/module/config/tool/cleanautobackup.php index c18800b9..f0144d10 100644 --- a/core/module/config/tool/cleanautobackup.php +++ b/core/module/config/tool/cleanautobackup.php @@ -23,7 +23,6 @@ if (isset ($_GET['key'])) { http_response_code(401); exit(); } -} else { // Récupère le nombre de jours à partir de la variable GET 'days' $days = isset ($_GET['days']) ? (int) $_GET['days'] : 1; // Par défaut à 1 si non spécifié