mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
edit web domain: Fixed missing template bug
This commit is contained in:
parent
7c63b94e4f
commit
7e463121c3
1 changed files with 2 additions and 2 deletions
|
@ -233,13 +233,13 @@ if (!empty($_POST['save'])) {
|
||||||
$ext = str_replace(' ', ", ", $ext);
|
$ext = str_replace(' ', ", ", $ext);
|
||||||
if (( $v_proxy_template != $_POST['v_proxy_template']) || ($v_proxy_ext != $ext)) {
|
if (( $v_proxy_template != $_POST['v_proxy_template']) || ($v_proxy_ext != $ext)) {
|
||||||
$ext = str_replace(', ', ",", $ext);
|
$ext = str_replace(', ', ",", $ext);
|
||||||
exec (VESTA_CMD."v-change-web-domain-proxy-tpl ".$v_username." ".$v_domain." ".escapeshellarg($_POST['v_proxy_template'])." ".escapeshellarg($ext)." 'no'", $output, $return_var);
|
if (!empty($_POST['v_proxy_template'])) $v_proxy_template = $_POST['v_proxy_template'];
|
||||||
|
exec (VESTA_CMD."v-change-web-domain-proxy-tpl ".$v_username." ".$v_domain." ".escapeshellarg($v_proxy_template)." ".escapeshellarg($ext)." 'no'", $output, $return_var);
|
||||||
if ($return_var != 0) {
|
if ($return_var != 0) {
|
||||||
$error = implode('<br>', $output);
|
$error = implode('<br>', $output);
|
||||||
if (empty($error)) $error = __('Error code:',$return_var);
|
if (empty($error)) $error = __('Error code:',$return_var);
|
||||||
$_SESSION['error_msg'] = $error;
|
$_SESSION['error_msg'] = $error;
|
||||||
}
|
}
|
||||||
$v_proxy_template = $_POST['v_proxy_template'];
|
|
||||||
$v_proxy_ext = str_replace(',', ', ', $ext);
|
$v_proxy_ext = str_replace(',', ', ', $ext);
|
||||||
unset($output);
|
unset($output);
|
||||||
$restart_proxy = 'yes';
|
$restart_proxy = 'yes';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue