We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d711f96 commit 632b416Copy full SHA for 632b416
web/add/webapp/index.php
@@ -39,8 +39,13 @@
39
if(class_exists($app_installer_class)) {
40
try {
41
$app_installer = new $app_installer_class($v_domain, $hestia);
42
- $installer = new \Hestia\WebApp\AppWizard($app_installer, $v_domain, $hestia);
43
- $GLOBALS['WebappInstaller'] = $installer;
+ $info = $app_installer -> info();
+ if ($info['enabled'] != true){
44
+ $_SESSION['error_msg'] = sprintf(_('%s installer missing'),$app);
45
+ }else{
46
+ $installer = new \Hestia\WebApp\AppWizard($app_installer, $v_domain, $hestia);
47
+ $GLOBALS['WebappInstaller'] = $installer;
48
+ }
49
} catch (Exception $e) {
50
$_SESSION['error_msg'] = $e->getMessage();
51
header('Location: /add/webapp/?domain=' . $v_domain);
0 commit comments