From 73ec73ca2108c8d5b8fe60a3cca36d5ff5036d7c Mon Sep 17 00:00:00 2001 From: Ilia Rostovtsev Date: Mon, 17 Aug 2020 12:04:22 +0300 Subject: [PATCH] Let user choose when to reload Apache https://github.com/virtualmin/virtualmin-gpl/issues/195" This reverts commit 399ded7829473aebe1dde2bfbca676b1bf5c8319. --- apache/save_global.cgi | 2 +- apache/save_virt.cgi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apache/save_global.cgi b/apache/save_global.cgi index 6bee8b816..62cfa4058 100755 --- a/apache/save_global.cgi +++ b/apache/save_global.cgi @@ -13,6 +13,6 @@ $conf = &get_config(); &error_setup(&text('efailed', $text{"type_$in{'type'}"})); &parse_inputs(\@edit, $conf, $conf); &webmin_log("global", $in{'type'}, undef, \%in); -&restart_apache(); + &redirect("index.cgi?mode=global"); diff --git a/apache/save_virt.cgi b/apache/save_virt.cgi index 5d93ab3c6..ea7ade199 100755 --- a/apache/save_virt.cgi +++ b/apache/save_virt.cgi @@ -28,5 +28,5 @@ elsif ($in{'type'} == 1 && &is_virtualmin_domain($v)) { &error_setup(&text('efailed', $text{"type_$in{'type'}"})); &parse_inputs(\@edit, $conf, &get_config()); &webmin_log("virt", $in{'type'}, &virtual_name($v, 1), \%in); -&restart_apache(); + &redirect("virt_index.cgi?virt=$in{'virt'}");