aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2012-11-11 14:35:31 +0100
committerAndreas Fischer <bantu@phpbb.com>2012-11-11 14:35:31 +0100
commitc699b88bc58ae07fffb33611a6d7ed950bbb1e15 (patch)
treea78a8704cfc77f4e0fba9ffdc7fe30ee00822866 /phpBB/includes/functions.php
parent3ebabc8da2b04a8ec157345b7c8185b5440cb5ee (diff)
downloadforums-c699b88bc58ae07fffb33611a6d7ed950bbb1e15.tar
forums-c699b88bc58ae07fffb33611a6d7ed950bbb1e15.tar.gz
forums-c699b88bc58ae07fffb33611a6d7ed950bbb1e15.tar.bz2
forums-c699b88bc58ae07fffb33611a6d7ed950bbb1e15.tar.xz
forums-c699b88bc58ae07fffb33611a6d7ed950bbb1e15.zip
[ticket/11192] Add Tebibyte to get_formatted_filesize().
PHPBB3-11192
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 65d8be32ad..33545ab845 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -301,6 +301,12 @@ function get_formatted_filesize($value, $string_only = true, $allowed_units = fa
global $user;
$available_units = array(
+ 'tb' => array(
+ 'min' => 1099511627776, // pow(2, 40)
+ 'index' => 4,
+ 'si_unit' => 'TB',
+ 'iec_unit' => 'TIB',
+ ),
'gb' => array(
'min' => 1073741824, // pow(2, 30)
'index' => 3,