Show total size for non-montage review downloads as well

This commit is contained in:
Isaac 2018-05-18 15:51:42 +02:00
parent cfbbc238c9
commit d8a62e0ede
1 changed files with 4 additions and 1 deletions

View File

@ -66,7 +66,10 @@ if ( !empty($_REQUEST['eid']) ) {
$Event = new Event( $_REQUEST['eid'] ); $Event = new Event( $_REQUEST['eid'] );
echo 'Downloading event ' . $_REQUEST['eid'] . ' Resulting file should be approximately ' . human_filesize( $Event->DiskSpace() ); echo 'Downloading event ' . $_REQUEST['eid'] . ' Resulting file should be approximately ' . human_filesize( $Event->DiskSpace() );
} else if ( !empty($_REQUEST['eids']) ) { } else if ( !empty($_REQUEST['eids']) ) {
$total_size = 0;
foreach ( $_REQUEST['eids'] as $eid ) { foreach ( $_REQUEST['eids'] as $eid ) {
$Event = new Event($eid);
$total_size += $Event->DiskSpace();
?> ?>
<input type="hidden" name="eids[]" value="<?php echo validInt($eid) ?>"/> <input type="hidden" name="eids[]" value="<?php echo validInt($eid) ?>"/>
<?php <?php