aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2013-07-20 01:15:12 +0200
committerJan-Christoph Borchardt <hey@jancborchardt.net>2013-07-20 01:15:12 +0200
commit48267b6e6ce5bb772c86a6210ddfeac2d1dff3c6 (patch)
tree6df8b65696cf32d16456fafa4799cc2bddfada69 /lib/public
parent48948ccf5f6f1d7de2765fb955f956063d9bedc8 (diff)
downloadnextcloud-server-48267b6e6ce5bb772c86a6210ddfeac2d1dff3c6.tar.gz
nextcloud-server-48267b6e6ce5bb772c86a6210ddfeac2d1dff3c6.zip
add back public API function, but mark as deprecated
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/template.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/public/template.php b/lib/public/template.php
index d81a169579e..1c138671977 100644
--- a/lib/public/template.php
+++ b/lib/public/template.php
@@ -77,6 +77,16 @@ function relative_modified_date($timestamp) {
/**
+ * @brief DEPRECATED Return a human readable outout for a file size.
+ * @param $byte size of a file in byte
+ * @returns human readable interpretation of a file size
+ */
+function simple_file_size($bytes) {
+ return(\human_file_size($bytes));
+}
+
+
+/**
* @brief Generate html code for an options block.
* @param $options the options
* @param $selected which one is selected?