summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_gateways_edit.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2017-02-09 15:30:26 +0545
committerGitHub <noreply@github.com>2017-02-09 15:30:26 +0545
commit83d3119200037b9ab99d542bc7c77480e7f79450 (patch)
treea582068eaf112cd98e4409a2e8afd51bea49db78 /src/usr/local/www/system_gateways_edit.php
parentf0136b178022cf3b04a6c3d577d457cf3bc03418 (diff)
downloadpfsense-83d3119200037b9ab99d542bc7c77480e7f79450.zip
pfsense-83d3119200037b9ab99d542bc7c77480e7f79450.tar.gz
Fix system_gateways_edit setHelp sprintf warning
The code at line 759 emitted a warning because of the bare '%' in the string. Other changes are to clarify and tidy up some other sprintf strings.
Diffstat (limited to 'src/usr/local/www/system_gateways_edit.php')
-rw-r--r--src/usr/local/www/system_gateways_edit.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/usr/local/www/system_gateways_edit.php b/src/usr/local/www/system_gateways_edit.php
index 6b52fbc..8f1def5 100644
--- a/src/usr/local/www/system_gateways_edit.php
+++ b/src/usr/local/www/system_gateways_edit.php
@@ -173,7 +173,7 @@ if ($_POST) {
}
if ($found === false) {
- $input_errors[] = sprintf(gettext("The gateway address %1\$s does not lie within one of the chosen interface's subnets."), $_POST['gateway']);
+ $input_errors[] = sprintf(gettext("The gateway address %s does not lie within one of the chosen interface's subnets."), $_POST['gateway']);
}
}
} else if (is_ipaddrv6($_POST['gateway'])) {
@@ -204,7 +204,7 @@ if ($_POST) {
}
if ($found === false) {
- $input_errors[] = sprintf(gettext("The gateway address %1\$s does not lie within one of the chosen interface's subnets."), $_POST['gateway']);
+ $input_errors[] = sprintf(gettext("The gateway address %s does not lie within one of the chosen interface's subnets."), $_POST['gateway']);
}
}
}
@@ -737,7 +737,7 @@ $group->add(new Form_Input(
['placeholder' => $dpinger_default['latencyhigh']]
));
$group->setHelp('Low and high thresholds for latency in milliseconds. ' .
- 'Default is %d/%d.', $dpinger_default['latencylow'], $dpinger_default['latencyhigh']);
+ 'Default is %1$d/%2$d.', $dpinger_default['latencylow'], $dpinger_default['latencyhigh']);
$section->add($group);
@@ -756,8 +756,8 @@ $group->add(new Form_Input(
$pconfig['losshigh'],
['placeholder' => $dpinger_default['losshigh']]
));
-$group->setHelp('Low and high thresholds for packet loss in %. ' .
- 'Default is %d/%d.', $dpinger_default['losslow'], $dpinger_default['losshigh']);
+$group->setHelp('Low and high thresholds for packet loss in %%. ' .
+ 'Default is %1$d/%2$d.', $dpinger_default['losslow'], $dpinger_default['losshigh']);
$section->add($group);
$section->addInput(new Form_Input(
OpenPOWER on IntegriCloud