@@ 787-790 (lines=4) @@ | ||
784 | $limit_size = (float) trim( str_ireplace( 'MB', '', $limit_size ) ); |
|
785 | $limit_size = $limit_size * 1025 * 1025; // convert to KB to B |
|
786 | } |
|
787 | elseif ( false !== stripos( $limit_size, 'KB' ) ) { |
|
788 | $limit_size = (float) trim( str_ireplace( 'KB', '', $limit_size ) ); |
|
789 | $limit_size = $limit_size * 1025 * 1025; // convert to B |
|
790 | } |
|
791 | elseif ( false !== stripos( $limit_size, 'GB' ) ) { |
|
792 | $limit_size = (float) trim( str_ireplace( 'GB', '', $limit_size ) ); |
|
793 | $limit_size = $limit_size * 1025 * 1025 * 1025; // convert to MB to KB to B |
|
@@ 791-794 (lines=4) @@ | ||
788 | $limit_size = (float) trim( str_ireplace( 'KB', '', $limit_size ) ); |
|
789 | $limit_size = $limit_size * 1025 * 1025; // convert to B |
|
790 | } |
|
791 | elseif ( false !== stripos( $limit_size, 'GB' ) ) { |
|
792 | $limit_size = (float) trim( str_ireplace( 'GB', '', $limit_size ) ); |
|
793 | $limit_size = $limit_size * 1025 * 1025 * 1025; // convert to MB to KB to B |
|
794 | } |
|
795 | elseif ( false !== stripos( $limit_size, 'B' ) ) |
|
796 | $limit_size = (float) trim( str_ireplace( 'B', '', $limit_size ) ); |
|
797 | else |