Skip to content

Commit a0240c2

Browse files
authored
Fix OpenCartSetup & PrestaShopSetup not found, missing capital (hestiacp#4689)
1 parent dc1bbba commit a0240c2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

web/src/app/WebApp/Installers/OpenCart/OpencartSetup.php renamed to web/src/app/WebApp/Installers/OpenCart/OpenCartSetup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Hestia\WebApp\Installers\BaseSetup as BaseSetup;
66
use function Hestiacp\quoteshellarg\quoteshellarg;
77

8-
class OpencartSetup extends BaseSetup {
8+
class OpenCartSetup extends BaseSetup {
99
protected $appInfo = [
1010
"name" => "OpenCart",
1111
"group" => "ecommerce",

web/src/app/WebApp/Installers/PrestaShop/PrestashopSetup.php renamed to web/src/app/WebApp/Installers/PrestaShop/PrestaShopSetup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Hestia\WebApp\Installers\BaseSetup as BaseSetup;
66
use function Hestiacp\quoteshellarg\quoteshellarg;
77

8-
class PrestashopSetup extends BaseSetup {
8+
class PrestaShopSetup extends BaseSetup {
99
protected $appInfo = [
1010
"name" => "PrestaShop",
1111
"group" => "ecommerce",

web/templates/pages/setup_webapp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
<select class="form-select" name="<?= $field_name ?>" id="<?= $field_name ?>">
7272
<?php foreach ($form_control["options"] as $key => $option):
7373
$key = !is_numeric($key) ? $key : $option;
74-
$selected = !empty($form_control["value"] && $key == $form_control["value"]) ? "selected" : ""; ?>
74+
$selected = (!empty($form_control["value"]) && $key == $form_control["value"]) ? "selected" : ""; ?>
7575
<option value="<?= $key ?>" <?= $selected ?>>
7676
<?= htmlentities($option) ?>
7777
</option>

0 commit comments

Comments
 (0)