diff options
author | doktornotor <notordoktor@gmail.com> | 2017-03-07 12:22:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-07 12:22:36 +0100 |
commit | 830cafe845c9ced701010318c2635317dfdac961 (patch) | |
tree | c9cdaf5ef558973cfd6257e1a66948142b2c1675 /src | |
parent | ca9a16216b87882394b2eb0b2110407121feaffb (diff) | |
download | pfsense-830cafe845c9ced701010318c2635317dfdac961.zip pfsense-830cafe845c9ced701010318c2635317dfdac961.tar.gz |
Add reason to write_config() calls
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/services_dyndns.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/usr/local/www/services_dyndns.php b/src/usr/local/www/services_dyndns.php index cf4f471..d941732 100644 --- a/src/usr/local/www/services_dyndns.php +++ b/src/usr/local/www/services_dyndns.php @@ -45,7 +45,7 @@ if ($_POST['act'] == "del") { @unlink("{$g['conf_path']}/dyndns_{$conf['interface']}{$conf['type']}" . escapeshellarg($hostname) . "{$conf['id']}.cache"); unset($a_dyndns[$_POST['id']]); - write_config(); + write_config(gettext("Dynamic DNS client deleted.")); services_dyndns_configure(); header("Location: services_dyndns.php"); @@ -54,10 +54,12 @@ if ($_POST['act'] == "del") { if ($a_dyndns[$_POST['id']]) { if (isset($a_dyndns[$_POST['id']]['enable'])) { unset($a_dyndns[$_POST['id']]['enable']); + $wc_msg = gettext('Dynamic DNS client disabled.'); } else { $a_dyndns[$_POST['id']]['enable'] = true; + $wc_msg = gettext('Dynamic DNS client enabled.'); } - write_config(); + write_config($wc_msg); services_dyndns_configure(); header("Location: services_dyndns.php"); |