From 48d418e8291a03f532f474cac5dd830f329536d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=C3=A7i?= Date: Wed, 16 Jul 2008 20:49:18 +0000 Subject: Reread the config after the new settings are saved. --- usr/local/www/firewall_shaper.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr') diff --git a/usr/local/www/firewall_shaper.php b/usr/local/www/firewall_shaper.php index 50e587a..0cc0e30 100755 --- a/usr/local/www/firewall_shaper.php +++ b/usr/local/www/firewall_shaper.php @@ -219,8 +219,8 @@ if ($_GET) { touch($d_shaperconfdirty_path); $can_enable = true; $can_add = true; - read_altq_config(); } + read_altq_config(); $output_form .= $altq->build_form(); } else if ($parentqueue) { /* Add a new queue */ @@ -233,7 +233,6 @@ if ($_GET) { array_pop($tmppath); $tmp->wconfig(); $can_enable = true; - read_altq_config(); if ($tmp->CanHaveChilds() && $can_enable) { if ($tmp->GetDefault() <> "") $can_add = false; @@ -250,6 +249,7 @@ if ($_GET) { else $can_add = true; } + read_altq_config(); $output_form .= $tmp->build_form(); } else $input_errors[] = "Could not add new queue."; @@ -292,9 +292,9 @@ if ($_GET) { write_config(); touch($d_shaperconfdirty_path); $dontshow = false; - read_altq_config(); } - $output_form .= $queue->build_form(); + read_altq_config(); + $output_form .= $queue->build_form(); } else { $output_form .= "

" . $default_shaper_msg."

"; $dontshow = true; -- cgit v1.1