summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-08-06 18:02:58 -0600
committerErik Fonnesbeck <efonnes@gmail.com>2010-08-06 18:02:58 -0600
commit05da89412a657dc8106931623cf562577c1241bc (patch)
tree167793a95136e62c461449739d34f0556caab848
parent601c73e0c6142d1b7398fdd1e8df69f12cdaf6cd (diff)
downloadpfsense-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.
-rwxr-xr-xusr/local/www/firewall_nat.php14
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>
OpenPOWER on IntegriCloud