diff --git a/phpBB/includes/acp/acp_profile.php b/phpBB/includes/acp/acp_profile.php index 9dc95ece36..fbc8f87750 100644 --- a/phpBB/includes/acp/acp_profile.php +++ b/phpBB/includes/acp/acp_profile.php @@ -429,9 +429,11 @@ class acp_profile $options = $profile_field->prepare_options_form($exclude, $visibility_ary); $field_icon_data = json_decode($field_row['field_icon'], true); + $field_icon_name = $request->variable('field_icon', $field_icon_data['name'] ?: ''); + $field_icon_color = $field_icon_name ? $request->variable('field_icon_color', $field_icon_data['color'] ?: '') : ''; $cp->vars['field_icon'] = json_encode([ - 'name' => $request->variable('field_icon', $field_icon_data['name'] ?: ''), - 'color' => $request->variable('field_icon_color', $field_icon_data['color'] ?: ''), + 'name' => $field_icon_name, + 'color' => $field_icon_color, ]); $cp->vars['field_ident'] = ($action == 'create' && $step == 1) ? utf8_clean_string($request->variable('field_ident', $field_row['field_ident'], true)) : $request->variable('field_ident', $field_row['field_ident']); $cp->vars['lang_name'] = $request->variable('lang_name', $field_row['lang_name'], true); diff --git a/phpBB/includes/ucp/ucp_pm_viewmessage.php b/phpBB/includes/ucp/ucp_pm_viewmessage.php index d418e49887..e4e179c82a 100644 --- a/phpBB/includes/ucp/ucp_pm_viewmessage.php +++ b/phpBB/includes/ucp/ucp_pm_viewmessage.php @@ -373,8 +373,11 @@ function view_message($id, $mode, $folder_id, $msg_id, $folder, $message_row) if ($cp_block_row['S_PROFILE_CONTACT']) { + $icon_data = json_decode($cp_block_row['PROFILE_FIELD_ICON'], true); $template->assign_block_vars('contact', array( 'ID' => $cp_block_row['PROFILE_FIELD_IDENT'], + 'ICON' => $icon_data['name'], + 'ICON_COLOR'=> $icon_data['color'], 'NAME' => $cp_block_row['PROFILE_FIELD_NAME'], 'U_CONTACT' => $cp_block_row['PROFILE_FIELD_CONTACT'], )); diff --git a/phpBB/styles/prosilver/template/ucp_pm_viewmessage.html b/phpBB/styles/prosilver/template/ucp_pm_viewmessage.html index 6572d965b8..2f5ca3d5ae 100644 --- a/phpBB/styles/prosilver/template/ucp_pm_viewmessage.html +++ b/phpBB/styles/prosilver/template/ucp_pm_viewmessage.html @@ -71,7 +71,10 @@