From 4dfd71110a32a032be1772f466989f3e650f753a Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Thu, 13 Nov 2014 07:06:29 +0000 Subject: [PATCH] Fix the restore file so that file name can be provided. --- app/backup/resources/classes/backup.php | 1 - 1 file changed, 1 deletion(-) diff --git a/app/backup/resources/classes/backup.php b/app/backup/resources/classes/backup.php index 6fff710113..7230cbadd7 100644 --- a/app/backup/resources/classes/backup.php +++ b/app/backup/resources/classes/backup.php @@ -61,7 +61,6 @@ include "root.php"; $path = ($_SESSION['server']['backup']['path'] != '') ? $_SESSION['server']['backup']['path'] : '/tmp'; $file = str_replace(array("/", "\\"),'',$file); //remove slashes to prevent changin the directory with the file name $format = substr($file,-3); - $file = 'backup_'.date('Ymd_His').'.'.$format; if (count($_SESSION['backup']['path']) > 0) { switch ($format) { case "rar" : $cmd = 'rar x -ow -o+ '.$path.'/'.$file.' /'; break;