Bug #23755 ยป 16022_measurements_with_double_t3lib_div.patch
t3lib/class.t3lib_div.php (Arbeitskopie) | ||
---|---|---|
*/
|
||
public static function getBytesFromSizeMeasurement($measurement) {
|
||
if (stripos($measurement, 'G')) {
|
||
$bytes = intval($measurement) * 1024 * 1024 * 1024;
|
||
$bytes = doubleval($measurement) * 1024 * 1024 * 1024;
|
||
} else if (stripos($measurement, 'M')) {
|
||
$bytes = intval($measurement) * 1024 * 1024;
|
||
$bytes = doubleval($measurement) * 1024 * 1024;
|
||
} else if (stripos($measurement, 'K')) {
|
||
$bytes = intval($measurement) * 1024;
|
||
$bytes = doubleval($measurement) * 1024;
|
||
} else {
|
||
$bytes = intval($measurement);
|
||
$bytes = doubleval($measurement);
|
||
}
|
||
return $bytes;
|
||
}
|