2
0
stany.ferer 2 жил өмнө
parent
commit
71254862ca

+ 2 - 2
core/class/backup.class.php

@@ -85,8 +85,8 @@ class backup
 
     public static function delete(string $_nameBackup)
     {
-        if(file_exists(DIR_BACKUP . "/" . $_nameBackup)){
-            unlink(DIR_BACKUP . "/" . $_nameBackup);
+        if(file_exists("/" . DIR_BACKUP . "/" . $_nameBackup)){
+            unlink("/" . DIR_BACKUP . "/" . $_nameBackup);
             alert::recSuccess("BackUp :. Suppression de " . $_nameBackup);
             return TRUE;
         } else {

+ 1 - 1
core/views/pages/cms.parametres-restore.php

@@ -53,7 +53,7 @@
     function deleteBackup(value, row, index) {
         if(index != 0){
             return '<form method="post" action="/submit.php">\n\
-            <input type="hidden" name="from" value="parametres-restore-backup-zip">\n\
+            <input type="hidden" name="from" value="parametres-delete-backup-zip">\n\
             <input type="hidden" name="file" value="' + row.file + '">\n\
             <button type="submit" onclick="return confirm(\'Etes-vous certain de vouloir supprimer ce backup?\')" class="btn btn-outline-warning btn-sm">Supprimer</button>\n\
             </form>';