summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_shaper_queues.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-10-09 15:07:06 -0400
committerjim-p <jimp@pfsense.org>2012-10-09 15:17:00 -0400
commit3a343d7384fbf78f987e8c4c2d9f307d22c8a072 (patch)
tree4b07c4c6d174a70520ec4ca578ecfe3e94048589 /usr/local/www/firewall_shaper_queues.php
parentc9ba2f8a92b0e18b891af2049436d4a3a505f9d9 (diff)
downloadpfsense-3a343d7384fbf78f987e8c4c2d9f307d22c8a072.zip
pfsense-3a343d7384fbf78f987e8c4c2d9f307d22c8a072.tar.gz
Refine saving/applying on more pages - don't show apply or take an action unless the user is allowed to do that.
Diffstat (limited to 'usr/local/www/firewall_shaper_queues.php')
-rwxr-xr-xusr/local/www/firewall_shaper_queues.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/firewall_shaper_queues.php b/usr/local/www/firewall_shaper_queues.php
index 68989e1..7eadc7b 100755
--- a/usr/local/www/firewall_shaper_queues.php
+++ b/usr/local/www/firewall_shaper_queues.php
@@ -81,8 +81,8 @@ if ($_GET) {
$qtmp =& $altq->find_queue("", $qname);
if ($qtmp) {
$qtmp->delete_queue();
- write_config();
- mark_subsystem_dirty('shaper');
+ if (write_config())
+ mark_subsystem_dirty('shaper');
}
header("Location: firewall_shaper_queues.php");
exit;
@@ -119,8 +119,8 @@ if ($_GET) {
$newroot['queue'][] = $copycfg;
$config['shaper']['queue'][] = $newroot;
}
- write_config();
- mark_subsystem_dirty('shaper');
+ if (write_config())
+ mark_subsystem_dirty('shaper');
break;
}
}
OpenPOWER on IntegriCloud