Show total size for non-montage review downloads as well
This commit is contained in:
parent
cfbbc238c9
commit
d8a62e0ede
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue