diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2013-07-18 22:15:26 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2013-07-18 22:15:26 +0200 |
commit | 48948ccf5f6f1d7de2765fb955f956063d9bedc8 (patch) | |
tree | a1f510db2a13aa3a446ee398a426c216eab5dfa2 /lib | |
parent | 279a71acb37ac373703ed05050771ef971b5d9a1 (diff) | |
download | nextcloud-server-48948ccf5f6f1d7de2765fb955f956063d9bedc8.tar.gz nextcloud-server-48948ccf5f6f1d7de2765fb955f956063d9bedc8.zip |
finally remove the file size obfuscation as it had more disadvantages. I was wrong, sorry.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/public/template.php | 10 | ||||
-rw-r--r-- | lib/template.php | 18 |
2 files changed, 0 insertions, 28 deletions
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 @@ -77,16 +77,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 * @param $selected which one is selected? diff --git a/lib/template.php b/lib/template.php index ae9ea187445..08df168afc6 100644 --- a/lib/template.php +++ b/lib/template.php @@ -84,24 +84,6 @@ function human_file_size( $bytes ) { return OC_Helper::humanFileSize( $bytes ); } -function simple_file_size($bytes) { - if ($bytes < 0) { - return '?'; - } - $mbytes = round($bytes / (1024 * 1024), 1); - if ($bytes == 0) { - return '0'; - } - if ($mbytes < 0.1) { - return '< 0.1'; - } - if ($mbytes > 1000) { - return '> 1000'; - } else { - return number_format($mbytes, 1); - } -} - function relative_modified_date($timestamp) { $l=OC_L10N::get('lib'); $timediff = time() - $timestamp; |