summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/contact/contact.pages.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/contact/contact.pages.inc b/modules/contact/contact.pages.inc
index c1fe3acca..2984b0d53 100644
--- a/modules/contact/contact.pages.inc
+++ b/modules/contact/contact.pages.inc
@@ -174,11 +174,11 @@ function contact_mail_user(&$form_state, $recipient) {
$form['recipient'] = array('#type' => 'value', '#value' => $recipient);
$form['from'] = array('#type' => 'item',
'#title' => t('From'),
- '#markup' => check_plain($user->name) . ' <' . check_plain($user->mail) . '>',
+ '#markup' => theme('username', $user) . ' <' . check_plain($user->mail) . '>',
);
$form['to'] = array('#type' => 'item',
'#title' => t('To'),
- '#markup' => check_plain($recipient->name),
+ '#markup' => theme('username', $recipient),
);
$form['subject'] = array('#type' => 'textfield',
'#title' => t('Subject'),