Skip to content

Commit 01e0759

Browse files
committed
2 parents f8fda45 + 97321a4 commit 01e0759

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

install/sql/incremental/upd_0081.sql

Lines changed: 0 additions & 2 deletions
This file was deleted.

install/sql/incremental/upd_dev_collection.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@ NS|{DOMAIN}.|{NS2}.|0|3600
3232
MX|{DOMAIN}.|mail.{DOMAIN}.|10|3600
3333
TXT|{DOMAIN}.|v=spf1 mx a ~all|0|3600' WHERE `dns_template`.`template_id` = 1;
3434

35+
ALTER TABLE `mail_backup` CHANGE `filesize` `filesize` VARCHAR(20) NOT NULL DEFAULT '';
36+
ALTER TABLE `web_backup` CHANGE `filesize` `filesize` VARCHAR(20) NOT NULL DEFAULT '';

interface/lib/classes/plugin_backuplist_mail.inc.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ class plugin_backuplist_mail extends plugin_base {
3939

4040
function onShow() {
4141
global $app;
42+
43+
$app->uses('functions');
44+
4245
$listTpl = new tpl;
4346
$listTpl->newTemplate('templates/mail_user_backup_list.htm');
4447

@@ -82,7 +85,7 @@ function onShow() {
8285
"VALUES (".
8386
(int)$this->form->dataRecord['server_id'] . ", " .
8487
time() . ", " .
85-
"'backup_restore', " .
88+
"'backup_restore_mail', " .
8689
"'".$backup_id."', " .
8790
"'pending', " .
8891
"''" .
@@ -105,6 +108,7 @@ function onShow() {
105108
$rec["bgcolor"] = $bgcolor;
106109
$rec['date'] = date($app->lng('conf_format_datetime'),$rec['tstamp']);
107110
$rec['backup_type'] = $wb[('backup_type_'.$rec['backup_type'])];
111+
$rec['filesize'] = $app->functions->formatBytes($rec['filesize']);
108112
$records_new[] = $rec;
109113
}
110114
}

0 commit comments

Comments
 (0)