diff options
author | Vinicius Coque <vinicius.coque@bluepex.com> | 2011-07-18 14:33:20 -0300 |
---|---|---|
committer | Vinicius Coque <vinicius.coque@bluepex.com> | 2011-07-18 14:33:20 -0300 |
commit | d1d0a1ad1b11a9c361f5907f660308f4abf761b2 (patch) | |
tree | 5e38e6fdcabde57546dc43ab540e37c5347f05d0 /usr/local/www/interfaces.php | |
parent | aa840cf9f1bd54b565c33abd1512570034109b5c (diff) | |
download | pfsense-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/interfaces.php')
-rwxr-xr-x | usr/local/www/interfaces.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 66aed5b..95a8313 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -451,9 +451,9 @@ if ($_POST['apply']) { } case "dhcp": if (in_array($wancfg['ipaddr'], array("ppp", "pppoe", "pptp", "l2tp"))) - $input_errors[] = gettext("You have to reassign the interface to be able to configure as {$_POST['type']}."); + $input_errors[] = sprintf(gettext("You have to reassign the interface to be able to configure as %s."),$_POST['type']); if (in_array($wancfg['ipaddrv6'], array("ppp", "pppoe", "pptp", "l2tp"))) - $input_errors[] = gettext("You have to reassign the interface to be able to configure as {$_POST['type']}."); + $input_errors[] = sprintf(gettext("You have to reassign the interface to be able to configure as %s."),$_POST['type']); break; case "ppp": $reqdfields = explode(" ", "port phone"); |