summaryrefslogtreecommitdiffstats
path: root/usr/local/www/wizards/traffic_shaper_wizard.inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-11-03 12:23:33 +0000
committerErmal Luçi <eri@pfsense.org>2009-11-03 12:26:10 +0000
commit101ccd1436f7c56ce779389523b1c4b7b466580a (patch)
tree6e81baea32708d3258936551ac5f51b3e2aef018 /usr/local/www/wizards/traffic_shaper_wizard.inc
parent8217d34d20d736644b973bc0f4d692dd566c0d67 (diff)
downloadpfsense-101ccd1436f7c56ce779389523b1c4b7b466580a.zip
pfsense-101ccd1436f7c56ce779389523b1c4b7b466580a.tar.gz
Unbreak the wizards. Some one enabled this disabled parts without even testing! Pointy-hat-to: scott@?!
Diffstat (limited to 'usr/local/www/wizards/traffic_shaper_wizard.inc')
-rw-r--r--usr/local/www/wizards/traffic_shaper_wizard.inc10
1 files changed, 5 insertions, 5 deletions
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
+?>
OpenPOWER on IntegriCloud