aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-07-19 20:22:18 -0400
committerjim-p <jimp@pfsense.org>2011-07-19 20:22:18 -0400
commit0bb1db3d9de95c9e814ac8a97f89bdadc60b2598 (patch)
treefd5f4bc3d45c1b65d1a7fdcd0ea0d2d8295aff89 /config
parentbb1ec6d9f6aa10483d6ca7464518bfe08c5c2a5e (diff)
downloadpfsense-packages-0bb1db3d9de95c9e814ac8a97f89bdadc60b2598.tar.gz
pfsense-packages-0bb1db3d9de95c9e814ac8a97f89bdadc60b2598.tar.bz2
pfsense-packages-0bb1db3d9de95c9e814ac8a97f89bdadc60b2598.zip
Activate cron jobs after saving config.
Diffstat (limited to 'config')
-rw-r--r--config/mailreport/status_mail_report.php1
-rw-r--r--config/mailreport/status_mail_report_edit.php3
2 files changed, 3 insertions, 1 deletions
diff --git a/config/mailreport/status_mail_report.php b/config/mailreport/status_mail_report.php
index d694e44f..4dc195bc 100644
--- a/config/mailreport/status_mail_report.php
+++ b/config/mailreport/status_mail_report.php
@@ -60,6 +60,7 @@ if ($_GET['act'] == "del") {
set_mail_report_cron_jobs($a_mailreports);
write_config("Removed Mail Report '{$name}'");
+ configure_cron();
header("Location: status_mail_report.php");
exit;
}
diff --git a/config/mailreport/status_mail_report_edit.php b/config/mailreport/status_mail_report_edit.php
index 36e568f9..fe9a5194 100644
--- a/config/mailreport/status_mail_report_edit.php
+++ b/config/mailreport/status_mail_report_edit.php
@@ -136,8 +136,9 @@ if ($_POST) {
// Fix up cron job(s)
set_mail_report_cron_jobs($a_mailreports);
-
write_config();
+ configure_cron();
+
header("Location: status_mail_report.php");
exit;
}