Browse Source

fix size value data type

main
yggverse 8 months ago
parent
commit
b5b042b5fa
  1. 4
      src/webui/explore.php

4
src/webui/explore.php

@ -481,7 +481,7 @@ if ($config->webui->index->enabled) @@ -481,7 +481,7 @@ if ($config->webui->index->enabled)
<?php } ?>
<?php if (!empty($document->size)) { ?>
<h3><?php echo _('Size') ?></h3>
<div><?php echo sprintf('%d bytes', number_format($document->size)) ?></div>
<div><?php echo sprintf('%s bytes', number_format($document->size)) ?></div>
<?php } ?>
<?php if (!empty($document->time)) { ?>
<h3><?php echo _('Time') ?></h3>
@ -497,7 +497,7 @@ if ($config->webui->index->enabled) @@ -497,7 +497,7 @@ if ($config->webui->index->enabled)
<?php foreach ($snap as $file) { ?>
<li>
<a rel="nofollow" href="api.php?action=snap&method=download&source=<?php echo $file->source ?>&id=<?php echo $file->id ?>&time=<?php echo $file->time ?>">
<?php echo sprintf('%s (tar.gz / %d bytes)', date('c', $file->time), number_format($file->size)) ?>
<?php echo sprintf('%s (tar.gz / %s bytes)', date('c', $file->time), number_format($file->size)) ?>
</a>
</li>
<?php } ?>

Loading…
Cancel
Save