@@ 796-799 (lines=4) @@ | ||
793 | $limit_size = (float) trim( str_ireplace( 'MB', '', $limit_size ) ); |
|
794 | $limit_size = $limit_size * 1025 * 1025; // convert to KB to B |
|
795 | } |
|
796 | elseif ( false !== stripos( $limit_size, 'KB' ) ) { |
|
797 | $limit_size = (float) trim( str_ireplace( 'KB', '', $limit_size ) ); |
|
798 | $limit_size = $limit_size * 1025 * 1025; // convert to B |
|
799 | } |
|
800 | elseif ( false !== stripos( $limit_size, 'GB' ) ) { |
|
801 | $limit_size = (float) trim( str_ireplace( 'GB', '', $limit_size ) ); |
|
802 | $limit_size = $limit_size * 1025 * 1025 * 1025; // convert to MB to KB to B |
|
@@ 800-803 (lines=4) @@ | ||
797 | $limit_size = (float) trim( str_ireplace( 'KB', '', $limit_size ) ); |
|
798 | $limit_size = $limit_size * 1025 * 1025; // convert to B |
|
799 | } |
|
800 | elseif ( false !== stripos( $limit_size, 'GB' ) ) { |
|
801 | $limit_size = (float) trim( str_ireplace( 'GB', '', $limit_size ) ); |
|
802 | $limit_size = $limit_size * 1025 * 1025 * 1025; // convert to MB to KB to B |
|
803 | } |
|
804 | elseif ( false !== stripos( $limit_size, 'B' ) ) |
|
805 | $limit_size = (float) trim( str_ireplace( 'B', '', $limit_size ) ); |
|
806 | else |