aboutsummaryrefslogtreecommitdiffstats
path: root/include/RedDAV/RedBrowser.php
diff options
context:
space:
mode:
authorhabeascodice <habeascodice@federated.social>2014-10-15 17:26:07 -0700
committerhabeascodice <habeascodice@federated.social>2014-10-15 17:26:07 -0700
commitcf58122b29b7576a27b0f0561d90b87d9a0623dd (patch)
treecb06b26e88a61c43dc430417b5957cd4dd331501 /include/RedDAV/RedBrowser.php
parent0c5408e22b47880e8e657d4e10f8b39581f2a29a (diff)
parent1eb478ba54206cca53653e7a579aa1a36fb03315 (diff)
downloadvolse-hubzilla-cf58122b29b7576a27b0f0561d90b87d9a0623dd.tar.gz
volse-hubzilla-cf58122b29b7576a27b0f0561d90b87d9a0623dd.tar.bz2
volse-hubzilla-cf58122b29b7576a27b0f0561d90b87d9a0623dd.zip
Merge remote branch 'upstream/master'
Diffstat (limited to 'include/RedDAV/RedBrowser.php')
-rw-r--r--include/RedDAV/RedBrowser.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/RedDAV/RedBrowser.php b/include/RedDAV/RedBrowser.php
index 1f2550ac1..6ec5c978d 100644
--- a/include/RedDAV/RedBrowser.php
+++ b/include/RedDAV/RedBrowser.php
@@ -262,6 +262,14 @@ class RedBrowser extends DAV\Browser\Plugin {
construct_page(get_app());
}
+ /**
+ * @brief Returns a human readable formatted string for filesizes.
+ *
+ * Don't we need such a functionality in other places, too?
+ *
+ * @param int $size filesize in bytes
+ * @return string
+ */
function userReadableSize($size) {
$ret = "";
if (is_numeric($size)) {