From 9e128ca34e811203e68d7fb725e9c30d30cc949e Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Thu, 13 Nov 2014 07:00:29 +0000 Subject: [PATCH] Add a return string to the backup and restore. --- app/backup/resources/classes/backup.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/backup/resources/classes/backup.php b/app/backup/resources/classes/backup.php index 22c050c767..6fff710113 100644 --- a/app/backup/resources/classes/backup.php +++ b/app/backup/resources/classes/backup.php @@ -81,6 +81,7 @@ include "root.php"; public function backup($type, $format) { $cmd = $this->command("backup", $format); exec($cmd); + return $cmd; } public function restore($file) { @@ -95,6 +96,7 @@ include "root.php"; } $cmd = $this->command("restore", $file); exec($cmd); + return $cmd; } public function download($file) { @@ -116,7 +118,6 @@ include "root.php"; fpassthru($fd); exit; } - exec($cmd); } } }