From b1e4005f9fd3c3e4e7ef86cdf756cfc84c3f6efc Mon Sep 17 00:00:00 2001 From: Vinicius Coque Date: Mon, 18 Jul 2011 15:33:28 -0300 Subject: removes variables concatenation on gettext strings --- usr/local/www/vpn_pppoe_edit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/local/www/vpn_pppoe_edit.php') diff --git a/usr/local/www/vpn_pppoe_edit.php b/usr/local/www/vpn_pppoe_edit.php index 6c94797..ea6f5f0 100755 --- a/usr/local/www/vpn_pppoe_edit.php +++ b/usr/local/www/vpn_pppoe_edit.php @@ -139,9 +139,9 @@ if ($_POST) { for($x=0; $x<4999; $x++) { if ($_POST["username{$x}"]) { if (empty($_POST["password{$x}"])) - $input_errors[] = gettext("No password specified for username ") . $_POST["username{$x}"]; + $input_errors[] = sprintf(gettext("No password specified for username %s"),$_POST["username{$x}"]); if ($_POST["ip{$x}"] <> "" && !is_ipaddr($_POST["ip{$x}"])) - $input_errors[] = gettext("Incorrect ip address specified for username ") . $_POST["username{$x}"]; + $input_errors[] = sprintf(gettext("Incorrect ip address specified for username %s"),$_POST["username{$x}"]); } } } -- cgit v1.1