@@ 651-654 (lines=4) @@ | ||
648 | $limit_size = (float) trim( str_ireplace( 'MB', '', $limit_size ) ); |
|
649 | $limit_size = $limit_size * 1025 * 1025; // convert to KB to B |
|
650 | } |
|
651 | elseif ( false !== stripos( $limit_size, 'KB' ) ) { |
|
652 | $limit_size = (float) trim( str_ireplace( 'KB', '', $limit_size ) ); |
|
653 | $limit_size = $limit_size * 1025 * 1025; // convert to B |
|
654 | } |
|
655 | elseif ( false !== stripos( $limit_size, 'GB' ) ) { |
|
656 | $limit_size = (float) trim( str_ireplace( 'GB', '', $limit_size ) ); |
|
657 | $limit_size = $limit_size * 1025 * 1025 * 1025; // convert to MB to KB to B |
|
@@ 655-658 (lines=4) @@ | ||
652 | $limit_size = (float) trim( str_ireplace( 'KB', '', $limit_size ) ); |
|
653 | $limit_size = $limit_size * 1025 * 1025; // convert to B |
|
654 | } |
|
655 | elseif ( false !== stripos( $limit_size, 'GB' ) ) { |
|
656 | $limit_size = (float) trim( str_ireplace( 'GB', '', $limit_size ) ); |
|
657 | $limit_size = $limit_size * 1025 * 1025 * 1025; // convert to MB to KB to B |
|
658 | } |
|
659 | elseif ( false !== stripos( $limit_size, 'B' ) ) |
|
660 | $limit_size = (float) trim( str_ireplace( 'B', '', $limit_size ) ); |
|
661 | else |