mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
remove deprecated function formatted_size()
This commit is contained in:
parent
b12cd07c5a
commit
8854ae5543
|
@ -18,14 +18,6 @@
|
|||
// along with this program; if not, write to the Free Software
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
/* deprecated! use SeedDMS_Core_File::format_filesize() instead */
|
||||
function formatted_size($size_bytes) { /* {{{ */
|
||||
if ($size_bytes>1000000000) return number_format($size_bytes/1000000000,1,".","")." GBytes";
|
||||
else if ($size_bytes>1000000) return number_format($size_bytes/1000000,1,".","")." MBytes";
|
||||
else if ($size_bytes>1000) return number_format($size_bytes/1000,1,".","")." KBytes";
|
||||
return number_format($size_bytes,0,"","")." Bytes";
|
||||
} /* }}} */
|
||||
|
||||
/* Date picker needs a different syntax for date formats using
|
||||
* yyyy for %Y
|
||||
* yy for %y
|
||||
|
@ -753,6 +745,7 @@ function get_extension($mimetype) { /* {{{ */
|
|||
case 'application/x-gzip': return '.gz';
|
||||
case 'application/x-rar': return '.rar';
|
||||
case 'application/x-compressed-tar': return '.tgz';
|
||||
case 'application/x-xopp': return '.xopp';
|
||||
case 'application/pdf': return '.pdf';
|
||||
case 'application/dxf': return '.dxf';
|
||||
case 'application/msword': return '.doc';
|
||||
|
|
Loading…
Reference in New Issue
Block a user