summaryrefslogtreecommitdiffstats
path: root/apps/files/templates/part.list.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/templates/part.list.php')
-rw-r--r--apps/files/templates/part.list.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/files/templates/part.list.php b/apps/files/templates/part.list.php
index 97a9026860b..0c7d6936697 100644
--- a/apps/files/templates/part.list.php
+++ b/apps/files/templates/part.list.php
@@ -9,7 +9,6 @@ $totalsize = 0; ?>
} else {
$totalfiles++;
}
- $simple_file_size = OCP\simple_file_size($file['size']);
// the bigger the file, the darker the shade of grey; megabytes*2
$simple_size_color = intval(160-$file['size']/(1024*1024)*2);
if($simple_size_color<0) $simple_size_color = 0;
@@ -52,9 +51,8 @@ $totalsize = 0; ?>
</a>
</td>
<td class="filesize"
- title="<?php p(OCP\human_file_size($file['size'])); ?>"
style="color:rgb(<?php p($simple_size_color.','.$simple_size_color.','.$simple_size_color) ?>)">
- <?php print_unescaped($simple_file_size); ?>
+ <?php print_unescaped(OCP\human_file_size($file['size'])); ?>
</td>
<td class="date">
<span class="modified"
@@ -91,7 +89,7 @@ $totalsize = 0; ?>
} ?>
</span></td>
<td class="filesize">
- <?php print_unescaped(OCP\simple_file_size($totalsize)); ?>
+ <?php print_unescaped(OCP\human_file_size($totalsize)); ?>
</td>
<td></td>
</tr>