Revize f472f09f
Přidáno uživatelem Ondřej Fibich před téměř 5 roky(ů)
application/helpers/file.php | ||
---|---|---|
}
|
||
|
||
$last = substr($size, -1);
|
||
$size_num = intval($size);
|
||
switch ($last)
|
||
{
|
||
case 't':
|
||
$size *= 1024;
|
||
$size_num *= 1024;
|
||
case 'g':
|
||
$size *= 1024;
|
||
$size_num *= 1024;
|
||
case 'm':
|
||
$size *= 1024;
|
||
$size_num *= 1024;
|
||
case 'k':
|
||
$size *= 1024;
|
||
$size_num *= 1024;
|
||
}
|
||
|
||
return $size;
|
||
|
||
return $size_num;
|
||
}
|
||
|
||
} // End file
|
Také k dispozici: Unified diff
Refs #1133: Fix calculation with string in file::shortened_size_to:_bytes that caused failure of system settings.