@@ -33,8 +33,8 @@ public function getName(): string {
3333 }
3434
3535 public function run (): SetupResult {
36- $ upload_max_filesize = Util:: computerFileSize (( string )$ this ->iniGetWrapper ->getString ('upload_max_filesize ' ) );
37- $ post_max_size = Util:: computerFileSize (( string )$ this ->iniGetWrapper ->getString ('post_max_size ' ) );
36+ $ upload_max_filesize = ( string )$ this ->iniGetWrapper ->getString ('upload_max_filesize ' );
37+ $ post_max_size = ( string )$ this ->iniGetWrapper ->getString ('post_max_size ' );
3838 $ max_input_time = (int )$ this ->iniGetWrapper ->getString ('max_input_time ' );
3939 $ max_execution_time = (int )$ this ->iniGetWrapper ->getString ('max_execution_time ' );
4040
@@ -43,16 +43,16 @@ public function run(): SetupResult {
4343 $ recommendedTime = 3600 ;
4444
4545 // Check if the PHP upload limit is too low
46- if ($ upload_max_filesize < $ recommendedSize ) {
46+ if (Util:: computerFileSize ( $ upload_max_filesize) < $ recommendedSize ) {
4747 $ warnings [] = $ this ->l10n ->t ('The PHP upload_max_filesize is too low. A size of at least %1$s is recommended. Current value: %2$s. ' , [
4848 Util::humanFileSize ($ recommendedSize ),
49- Util:: humanFileSize ( $ upload_max_filesize) ,
49+ $ upload_max_filesize ,
5050 ]);
5151 }
52- if ($ post_max_size < $ recommendedSize ) {
52+ if (Util:: computerFileSize ( $ post_max_size) < $ recommendedSize ) {
5353 $ warnings [] = $ this ->l10n ->t ('The PHP post_max_size is too low. A size of at least %1$s is recommended. Current value: %2$s. ' , [
5454 Util::humanFileSize ($ recommendedSize ),
55- Util:: humanFileSize ( $ post_max_size) ,
55+ $ post_max_size ,
5656 ]);
5757 }
5858
0 commit comments