From 197e026699e838c087b6d11a16ed6c2d9f15e0b0 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Sat, 18 Jan 2014 13:08:15 +0100 Subject: [ticket/11201] Add a method to return the translated full name of the type PHPBB3-11201 --- phpBB/includes/acp/acp_profile.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'phpBB/includes/acp/acp_profile.php') 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 .= ''; + $s_select_type .= ''; } $template->assign_vars(array( -- cgit v1.2.1