summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal_vouchers.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/services_captiveportal_vouchers.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/services_captiveportal_vouchers.php')
-rw-r--r--usr/local/www/services_captiveportal_vouchers.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/services_captiveportal_vouchers.php b/usr/local/www/services_captiveportal_vouchers.php
index f4f4b89..05bce04 100644
--- a/usr/local/www/services_captiveportal_vouchers.php
+++ b/usr/local/www/services_captiveportal_vouchers.php
@@ -295,7 +295,7 @@ EOF;
$config['voucher']['msgexpired'] = $toreturn['voucher']['msgexpired'];
if($toreturn['voucher']['msgnoaccess'])
$config['voucher']['msgnoaccess'] = $toreturn['voucher']['msgnoaccess'];
- $savemsg = gettext("Voucher database has been synchronized from {$url}:{$port}");
+ $savemsg = sprintf(gettext("Voucher database has been synchronized from %1\$s:%2\$s"),$url,$port);
write_config();
voucher_configure(true);
OpenPOWER on IntegriCloud