summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_gateways_edit.php
diff options
context:
space:
mode:
authorVinicius Coque <vinicius.coque@bluepex.com>2011-07-18 14:33:20 -0300
committerVinicius Coque <vinicius.coque@bluepex.com>2011-07-18 14:33:20 -0300
commitd1d0a1ad1b11a9c361f5907f660308f4abf761b2 (patch)
tree5e38e6fdcabde57546dc43ab540e37c5347f05d0 /usr/local/www/system_gateways_edit.php
parentaa840cf9f1bd54b565c33abd1512570034109b5c (diff)
downloadpfsense-d1d0a1ad1b11a9c361f5907f660308f4abf761b2.zip
pfsense-d1d0a1ad1b11a9c361f5907f660308f4abf761b2.tar.gz
makes correct use of printf and gettext
removes variables names and replace it with '%s'
Diffstat (limited to 'usr/local/www/system_gateways_edit.php')
-rwxr-xr-xusr/local/www/system_gateways_edit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php
index 02fac7c..f34df9f 100755
--- a/usr/local/www/system_gateways_edit.php
+++ b/usr/local/www/system_gateways_edit.php
@@ -122,14 +122,14 @@ if ($_POST) {
$parent_sn = get_interface_subnet($_POST['interface']);
$subnet = gen_subnet($parent_ip, $parent_sn) . "/" . $parent_sn;
if(!ip_in_subnet($_POST['gateway'], $subnet) && !ip_in_interface_alias_subnet($_POST['interface'], $_POST['gateway'])) {
- $input_errors[] = sprintf(gettext("The gateway address %s does not lie within the chosen interface's subnet '{$subnet}'."), $_POST['gateway']);
+ $input_errors[] = sprintf(gettext("The gateway address %1\$s does not lie within the chosen interface's subnet '%2\$s'."), $_POST['gateway'],$subnet);
}
}
if (is_ipaddrv6($parent_ip)) {
$parent_sn = get_interface_subnetv6($_POST['interface']);
$subnet = gen_subnetv6($parent_ip, $parent_sn) . "/" . $parent_sn;
if(!ip_in_subnet($_POST['gateway'], $subnet)) {
- $input_errors[] = sprintf(gettext("The gateway address %s does not lie within the chosen interface's subnet '{$subnet}'."), $_POST['gateway']);
+ $input_errors[] = sprintf(gettext("The gateway address %1\$s does not lie within the chosen interface's subnet '%2\$s'."), $_POST['gateway'],$subnet);
}
}
}
OpenPOWER on IntegriCloud