From 19734f0e3fb9186b51ed6223200309ee6413d913 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Thu, 13 Nov 2014 02:11:23 +0000 Subject: [PATCH] Fix the backup extension in the backup class. --- app/backup/resources/classes/backup.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/backup/resources/classes/backup.php b/app/backup/resources/classes/backup.php index a3357b91cf..d1dbb56947 100644 --- a/app/backup/resources/classes/backup.php +++ b/app/backup/resources/classes/backup.php @@ -36,7 +36,7 @@ include "root.php"; global $db; if ($type == "backup") { $backup_path = ($_SESSION['server']['backup']['path'] != '') ? $_SESSION['server']['backup']['path'] : '/tmp'; - $backup_file = 'backup_'.date('Ymd_His').'.'.$file_format; + $backup_file = 'backup_'.date('Ymd_His').'.'.$format; if (count($_SESSION['backup']['path']) > 0) { //determine compression method switch ($format) { @@ -57,7 +57,7 @@ include "root.php"; } if ($type == "restore") { $backup_path = ($_SESSION['server']['backup']['path'] != '') ? $_SESSION['server']['backup']['path'] : '/tmp'; - $backup_file = 'backup_'.date('Ymd_His').'.'.$file_format; + $backup_file = 'backup_'.date('Ymd_His').'.'.$format; if (count($_SESSION['backup']['path']) > 0) { switch ($format) { case "rar" : $cmd = 'rar x -ow -o+ '.$backup_path.'/'.$backup_file.' /'; break;