From 09c84fb3bc44bf8e45619c27acc15b967aea14ce Mon Sep 17 00:00:00 2001 From: maTh Date: Fri, 31 Dec 2021 13:50:32 +0100 Subject: Improved: install.php code quality (#4099) * delete unused $user_default_config * move inner named function * moved $auth_type * improve readability * phpcs fixes --- app/install.php | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'app/install.php') diff --git a/app/install.php b/app/install.php index 402de91a3..295be8b76 100644 --- a/app/install.php +++ b/app/install.php @@ -183,7 +183,6 @@ function saveStep2() { } function saveStep3() { - $user_default_config = Minz_Configuration::get('default_user'); if (!empty($_POST)) { $system_default_config = Minz_Configuration::get('default_system'); Minz_Session::_params([ @@ -447,8 +446,8 @@ function printStep1() { function printStep2() { $system_default_config = Minz_Configuration::get('default_system'); -?> - + $s2 = checkStep2(); + if ($s2['all'] == 'ok') { ?>

- + $auth_type = isset($_SESSION['auth_type']) ? $_SESSION['auth_type'] : ''; + $s3 = checkStep3(); + if ($s3['all'] == 'ok') { ?>

@@ -566,12 +569,6 @@ function printStep3() {