aboutsummaryrefslogtreecommitdiff
path: root/managerservice.php
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-11-17 19:14:01 +0300
committerValentin Popov <info@valentineus.link>2017-11-17 19:14:01 +0300
commitb61e5a08be11a3691fcef6cc163fd869ab8c2b0b (patch)
treed00db58315772c5d16d7274c83fb10330f4c2f9a /managerservice.php
parent4a470056a715eb5f7b954978c8684ae83904cdf6 (diff)
downloadlocal_webhooks-b61e5a08be11a3691fcef6cc163fd869ab8c2b0b.tar.xz
local_webhooks-b61e5a08be11a3691fcef6cc163fd869ab8c2b0b.zip
Generate another backup file
Diffstat (limited to 'managerservice.php')
-rw-r--r--managerservice.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/managerservice.php b/managerservice.php
index ee86e3c..48b14a9 100644
--- a/managerservice.php
+++ b/managerservice.php
@@ -57,8 +57,8 @@ $callbacks = $DB->get_records_select("local_webhooks_service", null, null, $DB->
/* Upload settings as a file */
if (boolval($backupservices)) {
- $filecontent = serialize($callbacks);
- $filename = "webhooks_" . date("U") . ".backup";
+ $filecontent = base64_encode(gzcompress(serialize($callbacks), 9));
+ $filename = "webhooks_" . date("U") . ".backup";
send_file($filecontent, $filename, 0, 0, true, true);
}