From 48948ccf5f6f1d7de2765fb955f956063d9bedc8 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Thu, 18 Jul 2013 22:15:26 +0200 Subject: finally remove the file size obfuscation as it had more disadvantages. I was wrong, sorry. --- lib/public/template.php | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'lib/public/template.php') diff --git a/lib/public/template.php b/lib/public/template.php index ccf19cf052c..d81a169579e 100644 --- a/lib/public/template.php +++ b/lib/public/template.php @@ -76,16 +76,6 @@ function relative_modified_date($timestamp) { } -/** - * @brief 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(\simple_file_size($bytes)); -} - - /** * @brief Generate html code for an options block. * @param $options the options -- cgit v1.2.3 From 48267b6e6ce5bb772c86a6210ddfeac2d1dff3c6 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Sat, 20 Jul 2013 01:15:12 +0200 Subject: add back public API function, but mark as deprecated --- lib/public/template.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/public/template.php') 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 @@ -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 -- cgit v1.2.3 From 05c83a163ac55bc422a7f22184dde5da18805907 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Sun, 21 Jul 2013 10:30:00 +0200 Subject: add proper deprecated tag --- lib/public/template.php | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/public/template.php') diff --git a/lib/public/template.php b/lib/public/template.php index 1c138671977..ab1089c332d 100644 --- a/lib/public/template.php +++ b/lib/public/template.php @@ -78,6 +78,7 @@ function relative_modified_date($timestamp) { /** * @brief DEPRECATED Return a human readable outout for a file size. + * @deprecated human_file_size() instead * @param $byte size of a file in byte * @returns human readable interpretation of a file size */ -- cgit v1.2.3