1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-29 04:50:51 +02:00

[ticket/11192] Add Tebibyte to get_formatted_filesize().

PHPBB3-11192
This commit is contained in:
Andreas Fischer
2012-11-11 14:35:31 +01:00
parent 3ebabc8da2
commit c699b88bc5
2 changed files with 8 additions and 0 deletions

View File

@@ -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,