diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-01-18 13:08:15 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-01-18 13:16:18 +0100 |
commit | 197e026699e838c087b6d11a16ed6c2d9f15e0b0 (patch) | |
tree | 95902e3f08c5faeda73e86d484d56f683d618304 /phpBB/includes | |
parent | df85364baa440e8c244ae90235ad74400981eef5 (diff) | |
download | forums-197e026699e838c087b6d11a16ed6c2d9f15e0b0.tar forums-197e026699e838c087b6d11a16ed6c2d9f15e0b0.tar.gz forums-197e026699e838c087b6d11a16ed6c2d9f15e0b0.tar.bz2 forums-197e026699e838c087b6d11a16ed6c2d9f15e0b0.tar.xz forums-197e026699e838c087b6d11a16ed6c2d9f15e0b0.zip |
[ticket/11201] Add a method to return the translated full name of the type
PHPBB3-11201
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/acp/acp_profile.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/acp/acp_profile.php b/phpBB/includes/acp/acp_profile.php index feb8265cf5..d7a733eded 100644 --- a/phpBB/includes/acp/acp_profile.php +++ b/phpBB/includes/acp/acp_profile.php @@ -625,7 +625,7 @@ class acp_profile 'S_FIELD_NO_VIEW' => ($cp->vars['field_no_view']) ? true : false, 'L_LANG_SPECIFIC' => sprintf($user->lang['LANG_SPECIFIC_OPTIONS'], $config['default_lang']), - 'FIELD_TYPE' => $user->lang['FIELD_' . strtoupper($profile_field->get_name())], + 'FIELD_TYPE' => $profile_field->get_name(), 'FIELD_IDENT' => $cp->vars['field_ident'], 'LANG_NAME' => $cp->vars['lang_name'], 'LANG_EXPLAIN' => $cp->vars['lang_explain'], @@ -712,7 +712,7 @@ class acp_profile $profile_field = $this->type_collection[$row['field_type']]; $template->assign_block_vars('fields', array( 'FIELD_IDENT' => $row['field_ident'], - 'FIELD_TYPE' => $user->lang['FIELD_' . strtoupper($profile_field->get_name())], + 'FIELD_TYPE' => $profile_field->get_name(), 'L_ACTIVATE_DEACTIVATE' => $user->lang[$active_lang], 'U_ACTIVATE_DEACTIVATE' => $this->u_action . "&action=$active_value&field_id=$id", @@ -736,7 +736,7 @@ class acp_profile $s_select_type = ''; foreach ($this->type_collection as $key => $profile_field) { - $s_select_type .= '<option value="' . $key . '">' . $user->lang['FIELD_' . strtoupper($profile_field->get_name())] . '</option>'; + $s_select_type .= '<option value="' . $key . '">' . $profile_field->get_name() . '</option>'; } $template->assign_vars(array( |