|
@@ 811-814 (lines=4) @@
|
| 808 |
|
$limit_size = (float) trim( str_ireplace( 'MB', '', $limit_size ) ); |
| 809 |
|
$limit_size = $limit_size * 1025 * 1025; // convert to KB to B |
| 810 |
|
} |
| 811 |
|
elseif ( false !== stripos( $limit_size, 'KB' ) ) { |
| 812 |
|
$limit_size = (float) trim( str_ireplace( 'KB', '', $limit_size ) ); |
| 813 |
|
$limit_size = $limit_size * 1025 * 1025; // convert to B |
| 814 |
|
} |
| 815 |
|
elseif ( false !== stripos( $limit_size, 'GB' ) ) { |
| 816 |
|
$limit_size = (float) trim( str_ireplace( 'GB', '', $limit_size ) ); |
| 817 |
|
$limit_size = $limit_size * 1025 * 1025 * 1025; // convert to MB to KB to B |
|
@@ 815-818 (lines=4) @@
|
| 812 |
|
$limit_size = (float) trim( str_ireplace( 'KB', '', $limit_size ) ); |
| 813 |
|
$limit_size = $limit_size * 1025 * 1025; // convert to B |
| 814 |
|
} |
| 815 |
|
elseif ( false !== stripos( $limit_size, 'GB' ) ) { |
| 816 |
|
$limit_size = (float) trim( str_ireplace( 'GB', '', $limit_size ) ); |
| 817 |
|
$limit_size = $limit_size * 1025 * 1025 * 1025; // convert to MB to KB to B |
| 818 |
|
} |
| 819 |
|
elseif ( false !== stripos( $limit_size, 'B' ) ) |
| 820 |
|
$limit_size = (float) trim( str_ireplace( 'B', '', $limit_size ) ); |
| 821 |
|
else |