From 437548f5333fe0ac4b17371721af2659b79ca5d6 Mon Sep 17 00:00:00 2001 From: Prashant Singh Date: Wed, 6 Feb 2019 14:02:36 +0530 Subject: [PATCH] minor updates in installer --- public/installer/AdminConfig.php | 2 +- public/installer/Classes/Requirement.php | 37 ++++++++++++------------ public/installer/Environment.php | 6 ++-- 3 files changed, 23 insertions(+), 22 deletions(-) diff --git a/public/installer/AdminConfig.php b/public/installer/AdminConfig.php index b492a27e4..fc9769197 100755 --- a/public/installer/AdminConfig.php +++ b/public/installer/AdminConfig.php @@ -97,7 +97,7 @@ $data = array(); $conn->close(); } else { - $data['support_error'] = 'It only support mysql Database Connection.If You still want to continue, press OK otherwise change your database connection'; + $data['support_error'] = 'Bagisto currently support MySQL only. Press OK to still continue or change you DB connection to MySQL'; } // if there are no errors process our form, then return a message diff --git a/public/installer/Classes/Requirement.php b/public/installer/Classes/Requirement.php index f961df41d..7c2d42fe2 100755 --- a/public/installer/Classes/Requirement.php +++ b/public/installer/Classes/Requirement.php @@ -20,9 +20,9 @@ class Requirement { 'JSON', 'cURL', ], - 'apache' => [ - 'mod_rewrite', - ] + // 'apache' => [ + // 'mod_rewrite', + // ] ]; $results = []; @@ -43,24 +43,25 @@ class Requirement { $results['errors'] = true; } } - break; + break; + // check apache requirements - case 'apache': - foreach ($requirements[$type] as $requirement) { - // if function doesn't exist we can't check apache modules - if(function_exists('apache_get_modules')) - { - $results['requirements'][$type][$requirement] = true; + // case 'apache': + // foreach ($requirements[$type] as $requirement) { + // // if function doesn't exist we can't check apache modules + // if(function_exists('apache_get_modules')) + // { + // $results['requirements'][$type][$requirement] = true; - if(!in_array($requirement,apache_get_modules())) - { - $results['requirements'][$type][$requirement] = false; + // if(!in_array($requirement,apache_get_modules())) + // { + // $results['requirements'][$type][$requirement] = false; - $results['errors'] = true; - } - } - } - break; + // $results['errors'] = true; + // } + // } + // } + //break; } } diff --git a/public/installer/Environment.php b/public/installer/Environment.php index 5653c9974..9fa35d7e5 100755 --- a/public/installer/Environment.php +++ b/public/installer/Environment.php @@ -22,8 +22,8 @@
-
@@ -71,7 +71,7 @@