diff options
author | habeascodice <habeascodice@federated.social> | 2014-10-15 17:29:38 -0700 |
---|---|---|
committer | habeascodice <habeascodice@federated.social> | 2014-10-15 17:29:38 -0700 |
commit | 80eb84e843cdca51bbf4ebda180f4de41351b9c4 (patch) | |
tree | d6cd7012210477c6e17322b2d19b8a1aad61ca44 /include/RedDAV/RedBrowser.php | |
parent | e4880d07d2aa447425d0b7dc3656e84de08006c0 (diff) | |
parent | 1eb478ba54206cca53653e7a579aa1a36fb03315 (diff) | |
download | volse-hubzilla-80eb84e843cdca51bbf4ebda180f4de41351b9c4.tar.gz volse-hubzilla-80eb84e843cdca51bbf4ebda180f4de41351b9c4.tar.bz2 volse-hubzilla-80eb84e843cdca51bbf4ebda180f4de41351b9c4.zip |
Merge remote branch 'upstream/master'
Diffstat (limited to 'include/RedDAV/RedBrowser.php')
-rw-r--r-- | include/RedDAV/RedBrowser.php | 8 |
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)) { |