diff --git a/setup/index.php b/setup/index.php index daf8eb8..10a3809 100644 --- a/setup/index.php +++ b/setup/index.php @@ -133,6 +133,4 @@ match ($iStep) { 'doupgrade' => checkAndInclude('steps/upgrade/doupgrade.php'), 'doinstall' => checkAndInclude('steps/setup/doinstall.php'), default => checkAndInclude('steps/languagechooser.php'), -}; - -?> \ No newline at end of file +}; \ No newline at end of file diff --git a/setup/lib/functions.phpinfo.php b/setup/lib/functions.phpinfo.php index abe79b0..d7e5dcc 100644 --- a/setup/lib/functions.phpinfo.php +++ b/setup/lib/functions.phpinfo.php @@ -1,12 +1,12 @@ (int) $val * 1024, - 'm', 'M' => (int) $val * 1_048_576, + 'k', 'K' => (int)$val * 1024, + 'm', 'M' => (int)$val * 1_048_576, default => $val, }; } -function isPHPExtensionLoaded($extension) { +function isPHPExtensionLoaded($extension) +{ $value = extension_loaded($extension); if ($value === true) { @@ -118,7 +119,7 @@ function isPHPExtensionLoaded($extension) { /** * Test for PHP compatibility - * + * * @param string $sVersion phpversion to test * @return boolean */