diff options
author | Valentin Popov <info@valentineus.link> | 2017-11-17 19:14:01 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2017-11-17 19:14:01 +0300 |
commit | b61e5a08be11a3691fcef6cc163fd869ab8c2b0b (patch) | |
tree | d00db58315772c5d16d7274c83fb10330f4c2f9a | |
parent | 4a470056a715eb5f7b954978c8684ae83904cdf6 (diff) | |
download | local_webhooks-b61e5a08be11a3691fcef6cc163fd869ab8c2b0b.tar.xz local_webhooks-b61e5a08be11a3691fcef6cc163fd869ab8c2b0b.zip |
Generate another backup file
-rw-r--r-- | managerservice.php | 4 |
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); } |