Powerful and easy to use cms to build websites, blogs or ecommerce stores.
HTML backendblogblog-engineblog-platformbloggingcmscontent-managementcontent-management-systemecommerceecommerce-platformno-codepage-builderphpphp-cmsphp7php8self-hostedshopping-cartweb-applicationwebsite-builder
Added hostname parameter for install cli and fixed concantenation operator
givanzaf998030f5e0
diff --git a/install/controller/index.php b/install/controller/index.phpindex 28e9af2..e1e7959 100755--- a/install/controller/index.php+++ b/install/controller/index.php@@ -77,7 +77,7 @@ class Index extends Base {die(__('Already installed! To reinstall remove config/db.php') . "\n");} else {if (! $admin || ! isset($admin['role_id']) || $admin['role_id'] != '1') {- $message += __('Invalid installation. No user with "super admin" role found!');+ $message .= __('Invalid installation. No user with "super admin" role found!');$this->view = View :: getInstance();$this->view->info[] = $message;}@@ -222,6 +222,7 @@ class Index extends Base {$settings = $this->request->post['settings'] ?? [];$theme = $this->request->post['theme'] ?? 'landing';$noecommerce = $this->request->post['noecommerce'] ?? false;+ $hostname = $this->request->post['hostname'] ?? null;$user['status'] = 1;$result = Admin::update($user, ['username' => 'admin']);@@ -257,7 +258,7 @@ class Index extends Base {$settings['contact-email'] = $user['email'];$site = [- 'host' => $_SERVER['HTTP_HOST'] ?? '*.*.*',+ 'host' => $hostname ?? '*.*.*', //$_SERVER['HTTP_HOST']'id' => 1,'name' => 'Default','theme' => $theme,