From a9851eed009cc697641755277ce4a74bd8d018b3 Mon Sep 17 00:00:00 2001 From: steinm Date: Fri, 8 Feb 2013 07:28:02 +0000 Subject: [PATCH] - abbreviation for kilo bytes is kB not KB --- LetoDMS_Core/Core/inc.FileUtils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LetoDMS_Core/Core/inc.FileUtils.php b/LetoDMS_Core/Core/inc.FileUtils.php index 2f01bd097..407d0ba1e 100644 --- a/LetoDMS_Core/Core/inc.FileUtils.php +++ b/LetoDMS_Core/Core/inc.FileUtils.php @@ -52,7 +52,7 @@ class LetoDMS_Core_File { return $filesize; } - function format_filesize($size, $sizes = array('Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB')) { + function format_filesize($size, $sizes = array('Bytes', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB')) { if ($size == 0) return('n/a'); return (round($size/pow(1024, ($i = floor(log($size, 1024)))), 2) . ' ' . $sizes[$i]); }