diff options
author | Erik Fonnesbeck <efonnes@gmail.com> | 2010-08-06 18:02:58 -0600 |
---|---|---|
committer | Erik Fonnesbeck <efonnes@gmail.com> | 2010-08-06 18:02:58 -0600 |
commit | 05da89412a657dc8106931623cf562577c1241bc (patch) | |
tree | 167793a95136e62c461449739d34f0556caab848 /usr | |
parent | 601c73e0c6142d1b7398fdd1e8df69f12cdaf6cd (diff) | |
download | pfsense-05da89412a657dc8106931623cf562577c1241bc.zip pfsense-05da89412a657dc8106931623cf562577c1241bc.tar.gz |
Change the save message code on port forwards to be consistent with the other NAT pages. Fixes the message that was supposed to be shown after applying.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/firewall_nat.php | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/usr/local/www/firewall_nat.php b/usr/local/www/firewall_nat.php index 0cb0f86..aa68510 100755 --- a/usr/local/www/firewall_nat.php +++ b/usr/local/www/firewall_nat.php @@ -66,13 +66,9 @@ if ($_POST) { $retval = 0; - if(stristr($retval, "error") <> true) - $savemsg = get_std_save_message($retval); - else - $savemsg = $retval; - unlink_if_exists("/tmp/config.cache"); $retval |= filter_configure(); + $savemsg = get_std_save_message($retval); if ($retval == 0) { clear_subsystem_dirty('natconf'); @@ -172,13 +168,9 @@ echo "<script type=\"text/javascript\" language=\"javascript\" src=\"/javascript <?php include("fbegin.inc"); ?> <form action="firewall_nat.php" method="post" name="iform"> <script type="text/javascript" language="javascript" src="/javascript/row_toggle.js"></script> +<?php if ($savemsg) print_info_box($savemsg); ?> <?php if (is_subsystem_dirty('natconf')): ?><p> -<?php - if($savemsg) - print_info_box_np("{$savemsg}<br>" . gettext("The NAT configuration has been changed") . ".<br>" . gettext("You must apply the changes in order for them to take effect.") ); - else - print_info_box_np( gettext("The NAT configuration has been changed") . ".<br>" . gettext("You must apply the changes in order for them to take effect.") ); -?> +<?php print_info_box_np(gettext("The NAT configuration has been changed") . ".<br>" . gettext("You must apply the changes in order for them to take effect."));?><br> <?php endif; ?> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr><td> |