summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <morris.jobke@gmail.com>2013-07-21 01:25:39 -0700
committerMorris Jobke <morris.jobke@gmail.com>2013-07-21 01:25:39 -0700
commit647e0a0cba4a6f51b6f88fabdacd060b2431719f (patch)
tree7c775d4a9e90074f2b95500782ac569e12b8c86c /lib
parent9a13b687ccac4782650d3048992140f5324adb45 (diff)
parent48267b6e6ce5bb772c86a6210ddfeac2d1dff3c6 (diff)
downloadnextcloud-server-647e0a0cba4a6f51b6f88fabdacd060b2431719f.tar.gz
nextcloud-server-647e0a0cba4a6f51b6f88fabdacd060b2431719f.zip
Merge pull request #4118 from owncloud/remove-size-experiment
finally remove the file size obfuscation as it had more disadvantages.
Diffstat (limited to 'lib')
-rw-r--r--lib/public/template.php4
-rw-r--r--lib/template.php18
2 files changed, 2 insertions, 20 deletions
diff --git a/lib/public/template.php b/lib/public/template.php
index ccf19cf052c..1c138671977 100644
--- a/lib/public/template.php
+++ b/lib/public/template.php
@@ -77,12 +77,12 @@ function relative_modified_date($timestamp) {
/**
- * @brief Return a human readable outout for a file size.
+ * @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(\simple_file_size($bytes));
+ return(\human_file_size($bytes));
}
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 '&lt; 0.1';
- }
- if ($mbytes > 1000) {
- return '&gt; 1000';
- } else {
- return number_format($mbytes, 1);
- }
-}
-
function relative_modified_date($timestamp) {
$l=OC_L10N::get('lib');
$timediff = time() - $timestamp;