format filesize into human_readable in generate video view
parent
e6c8081fb6
commit
c4b895045b
|
@ -83,7 +83,7 @@ if ( isset($_REQUEST['downloadIndex']) ) {
|
|||
// can't be output buffering, as this file might be large
|
||||
ob_end_clean();
|
||||
$downloadIndex = validInt($_REQUEST['downloadIndex']);
|
||||
ZM\Error("Download $downloadIndex, file: " . $videoFiles[$downloadIndex]);
|
||||
ZM\Debug("Download $downloadIndex, file: " . $videoFiles[$downloadIndex]);
|
||||
header('Pragma: public');
|
||||
header('Expires: 0');
|
||||
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
|
||||
|
@ -195,7 +195,7 @@ if ( isset($_REQUEST['showIndex']) ) {
|
|||
?>
|
||||
<tr>
|
||||
<td><?php echo $matches[4] ?></td>
|
||||
<td><?php echo filesize($file) ?></td>
|
||||
<td><?php echo human_filesize(filesize($file)) ?></td>
|
||||
<td><?php echo $rateText ?></td>
|
||||
<td><?php echo $scaleText ?></td>
|
||||
<td>
|
||||
|
|
Loading…
Reference in New Issue