From 6ea8c2f19fa123d64f0c72e2006c651eda47b32f Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 23 Nov 2005 21:46:15 +0000 Subject: [PATCH] MFC 7976 Fix "No interfaces supported" error when finishing shaper with no items selected. --- usr/local/www/wizards/traffic_shaper_wizard.xml | 6 +++--- 1 file 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 13cf57e892..80c33edd31 100644 --- a/usr/local/www/wizards/traffic_shaper_wizard.xml +++ b/usr/local/www/wizards/traffic_shaper_wizard.xml @@ -47,7 +47,8 @@ /* Check to see if ALTQ can even be used */ if(!is_altq_capable($config['interfaces']['wan']['if']) or !is_altq_capable($config['interfaces']['lan']['if'])) { - header("Location: /wizard.php?xml=traffic_shaper_wizard.xml&stepid=7"); + $message="Either your LAN or WAN interface doesn't support ALTQ. The wizard cannot continue."; + header("Location: /wizard.php?xml=traffic_shaper_wizard.xml&stepid=7&message={$message}"); } @@ -1921,7 +1922,7 @@ $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=8&message={$message}"); + header("Location: /wizard.php?xml=traffic_shaper_wizard.xml&stepid=7&message={$message}"); filter_configure(); exit; } @@ -1940,7 +1941,6 @@ Finish submit - Either your LAN or WAN interface doesn't support ALTQ. The wizard cannot continue.