aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_profile.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2011-09-20 23:29:52 +0200
committerOleg Pudeyev <oleg@bsdpower.com>2011-11-25 15:10:50 -0500
commitc4aa8d8401420f8f36a622dc279587ee07466925 (patch)
treeac1c0fffa6c6b7e12513e494c0b9c4612e56e2f2 /phpBB/includes/ucp/ucp_profile.php
parent814220f1c13ecac42f9d9aceb4489d5db282b2ac (diff)
downloadforums-c4aa8d8401420f8f36a622dc279587ee07466925.tar
forums-c4aa8d8401420f8f36a622dc279587ee07466925.tar.gz
forums-c4aa8d8401420f8f36a622dc279587ee07466925.tar.bz2
forums-c4aa8d8401420f8f36a622dc279587ee07466925.tar.xz
forums-c4aa8d8401420f8f36a622dc279587ee07466925.zip
[ticket/10345] Fix some last use cases of sprintf() to use $user->lang()
PHPBB3-10345
Diffstat (limited to 'phpBB/includes/ucp/ucp_profile.php')
-rw-r--r--phpBB/includes/ucp/ucp_profile.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php
index 4822d7a421..c2082c99f6 100644
--- a/phpBB/includes/ucp/ucp_profile.php
+++ b/phpBB/includes/ucp/ucp_profile.php
@@ -248,8 +248,8 @@ class ucp_profile
'NEW_PASSWORD' => $data['new_password'],
'CUR_PASSWORD' => '',
- 'L_USERNAME_EXPLAIN' => sprintf($user->lang[$config['allow_name_chars'] . '_EXPLAIN'], $config['min_name_chars'], $config['max_name_chars']),
- 'L_CHANGE_PASSWORD_EXPLAIN' => sprintf($user->lang[$config['pass_complex'] . '_EXPLAIN'], $config['min_pass_chars'], $config['max_pass_chars']),
+ 'L_USERNAME_EXPLAIN' => $user->lang($config['allow_name_chars'] . '_EXPLAIN', $user->lang('CHARACTERS', (int) $config['min_name_chars']), $user->lang('CHARACTERS', (int) $config['max_name_chars'])),
+ 'L_CHANGE_PASSWORD_EXPLAIN' => $user->lang($config['pass_complex'] . '_EXPLAIN', $user->lang('CHARACTERS', (int) $config['min_pass_chars']), $user->lang('CHARACTERS', (int) $config['max_pass_chars'])),
'S_FORCE_PASSWORD' => ($auth->acl_get('u_chgpasswd') && $config['chg_passforce'] && $user->data['user_passchg'] < time() - ($config['chg_passforce'] * 86400)) ? true : false,
'S_CHANGE_USERNAME' => ($config['allow_namechange'] && $auth->acl_get('u_chgname')) ? true : false,