aboutsummaryrefslogtreecommitdiff
path: root/src/controller/MaintenanceController.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/controller/MaintenanceController.php')
-rw-r--r--src/controller/MaintenanceController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controller/MaintenanceController.php b/src/controller/MaintenanceController.php
index 83304de..d4d2af4 100644
--- a/src/controller/MaintenanceController.php
+++ b/src/controller/MaintenanceController.php
@@ -53,7 +53,7 @@ class MaintenanceController
53 static public function getLastDump(): void 53 static public function getLastDump(): void
54 { 54 {
55 try{ 55 try{
56 $file_path = Backup::getLastBackupName(); 56 $file_path = Backup::$backup_dir . '/' . Backup::getLastBackupName();
57 header('Content-Type: application/octet-stream'); // signifie fichier quelconque, du binaire quoi! 57 header('Content-Type: application/octet-stream'); // signifie fichier quelconque, du binaire quoi!
58 header('Content-Disposition: attachment; filename="' . basename($file_path) . '"'); // pour provoquer un téléchargement et non pour afficher 58 header('Content-Disposition: attachment; filename="' . basename($file_path) . '"'); // pour provoquer un téléchargement et non pour afficher
59 header('Content-Length: ' . filesize($file_path)); // peut servir côté client (barre de progression...) 59 header('Content-Length: ' . filesize($file_path)); // peut servir côté client (barre de progression...)