From d8a62e0edea3157a5fa6c495459ff07b8e06aba6 Mon Sep 17 00:00:00 2001 From: Isaac Date: Fri, 18 May 2018 15:51:42 +0200 Subject: [PATCH] Show total size for non-montage review downloads as well --- web/skins/classic/views/download.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/skins/classic/views/download.php b/web/skins/classic/views/download.php index d9e8bf7e3..06142799c 100644 --- a/web/skins/classic/views/download.php +++ b/web/skins/classic/views/download.php @@ -66,7 +66,10 @@ if ( !empty($_REQUEST['eid']) ) { $Event = new Event( $_REQUEST['eid'] ); echo 'Downloading event ' . $_REQUEST['eid'] . ' Resulting file should be approximately ' . human_filesize( $Event->DiskSpace() ); } else if ( !empty($_REQUEST['eids']) ) { + $total_size = 0; foreach ( $_REQUEST['eids'] as $eid ) { + $Event = new Event($eid); + $total_size += $Event->DiskSpace(); ?> There are no events found. Resulting download will be empty.'; + echo '
There are no events found. Resulting download will be empty.
'; } ?>