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