]> source.dussan.org Git - nextcloud-server.git/commitdiff
add back public API function, but mark as deprecated
authorJan-Christoph Borchardt <hey@jancborchardt.net>
Fri, 19 Jul 2013 23:15:12 +0000 (01:15 +0200)
committerJan-Christoph Borchardt <hey@jancborchardt.net>
Fri, 19 Jul 2013 23:15:12 +0000 (01:15 +0200)
lib/public/template.php

index d81a169579eaf0f0882d2259a47b5c850522529c..1c13867197784ea9cba682d7b37dc9c5b8c7e642 100644 (file)
@@ -76,6 +76,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