diff options
-rw-r--r-- | usr/local/www/wizards/traffic_shaper_wizard.xml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/wizards/traffic_shaper_wizard.xml b/usr/local/www/wizards/traffic_shaper_wizard.xml index 80c33ed..8a04002 100644 --- a/usr/local/www/wizards/traffic_shaper_wizard.xml +++ b/usr/local/www/wizards/traffic_shaper_wizard.xml @@ -420,6 +420,8 @@ $queue['attachtoqueue'] = "{$downq}Root"; $config['shaper']['queue'][] = $queue; + $config['shaper']['itemsshaped']++; + if( $_POST['provider'] == "Generic") { /* create VOIP rules */ $rule = array(); @@ -473,7 +475,6 @@ foreach ($voiplist as $voip) { foreach (array('source', 'destination') as $srcdest) { $rule = array(); - $config['shaper']['itemsshaped']++; if ($srcdest == 'source') { $destsrc = 'destination'; $rule['outqueue'] = 'qVOIPUp'; @@ -1918,12 +1919,11 @@ */ unset($config['shaper']['queue']); unset($config['shaper']['rule']); + unset($config['shaper']); $config['shaper']['enable'] = FALSE; - $config['shaper']['itemsshaped'] = "0"; $message = "No items have been selected to shape. Exiting traffic shaper wizard."; write_config("No shaper items picked, unsetting shaper configuration"); header("Location: /wizard.php?xml=traffic_shaper_wizard.xml&stepid=7&message={$message}"); - filter_configure(); exit; } </stepbeforeformdisplay> |