From 101ccd1436f7c56ce779389523b1c4b7b466580a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Tue, 3 Nov 2009 12:23:33 +0000 Subject: Unbreak the wizards. Some one enabled this disabled parts without even testing! Pointy-hat-to: scott@?! --- usr/local/www/wizards/traffic_shaper_wizard.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'usr/local/www/wizards/traffic_shaper_wizard.inc') diff --git a/usr/local/www/wizards/traffic_shaper_wizard.inc b/usr/local/www/wizards/traffic_shaper_wizard.inc index 7ef612e..9bf9851 100644 --- a/usr/local/www/wizards/traffic_shaper_wizard.inc +++ b/usr/local/www/wizards/traffic_shaper_wizard.inc @@ -485,12 +485,12 @@ function step4_stepsubmitphpaction() { exit; } - if (wizard_get_bwunit($_POST['bandwidth']) <> "%") { + if ($_POST['bandwidthspeed'] <> "%") { $message = gettext("Only percentage bandwidth specification is allowed."); header("Location: wizard.php?xml=traffic_shaper_wizard.xml&stepid=3&message={$message}"); exit; } - $bw = wizard_get_bw($_POST['bandwidth']); + $bw = $_POST['bandwidth']; if($bw > 15 && $bw < 2) { $message="Values should be between 2% and 15%!"; header("Location: wizard.php?xml=traffic_shaper_wizard.xml&stepid=3&message={$message}"); @@ -518,12 +518,12 @@ function step5_stepsubmitphpaction() { } - if (wizard_get_bwunit($_POST['bandwidth']) <> "%") { + if ($_POST['bandwidthspeed'] <> "%") { $message = gettext("Only percentage bandwidth specification is allowed."); header("Location: wizard.php?xml=traffic_shaper_wizard.xml&stepid=4&message={$message}"); exit; } - $bw = wizard_get_bw($_POST['bandwidth']); + $bw = $_POST['bandwidth']; if($bw > 15 && $bw < 2) { $message="Values should be between 2% and 15%!"; header("Location: wizard.php?xml=traffic_shaper_wizard.xml&stepid=3&message={$message}"); @@ -1871,4 +1871,4 @@ function wizard_get_bandwidthtype_scale($type) { return floatval($factor); } -?> \ No newline at end of file +?> -- cgit v1.1