Skip to content

Commit 97321a4

Browse files
author
Dominik
committed
formatBytes for backup-filesizes in interface
1 parent 333ca07 commit 97321a4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

interface/lib/classes/plugin_backuplist_mail.inc.php

Lines changed: 4 additions & 0 deletions
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

@@ -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)