Fixed passenger installation
This commit is contained in:
@@ -14,6 +14,11 @@ if ($_SESSION["userContext"] != "admin") {
|
||||
exec(HESTIA_CMD . "v-ext-modules list json", $output, $return_var);
|
||||
$data = json_decode(implode("", $output), true);
|
||||
ksort($data);
|
||||
$error_message = "";
|
||||
if (!empty($_SESSION["error_msg"])){
|
||||
$error_message = $_SESSION["error_msg"];
|
||||
$_SESSION["error_msg"] = "";
|
||||
}
|
||||
|
||||
unset($output);
|
||||
|
||||
|
||||
@@ -12,6 +12,18 @@
|
||||
|
||||
<div class="container">
|
||||
|
||||
<?php
|
||||
if (!empty($error_message)) {
|
||||
?>
|
||||
<div class="u-text-center inline-alert inline-alert-danger u-mb20" role="alert">
|
||||
<i class="fas fa-circle-exclamation"></i>
|
||||
<p><?= $error_message ?></p>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<h1 class="u-text-center u-hide-desktop u-mt20 u-pr30 u-mb20 u-pl30"><?= _("List modules") ?></h1>
|
||||
|
||||
<div class="units-table js-units-container">
|
||||
|
||||
Reference in New Issue
Block a user