From dd7b44c4179b39788a1a6d9b3f0cd4eba0410f0e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 7 Nov 2006 12:09:55 +0000 Subject: - Patch #92845 by chx: fixed contact module placeholders in e-mail messages. --- modules/contact/contact.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/contact/contact.module b/modules/contact/contact.module index 57fe5fed9..c2232e3a1 100644 --- a/modules/contact/contact.module +++ b/modules/contact/contact.module @@ -514,7 +514,7 @@ function contact_mail_page_submit($form_id, $form_values) { $from = $form_values['mail']; // Compose the body: - $message[] = t("%name sent a message using the contact form at %form.", array('%name' => $form_values['name'], '%form' => url($_GET['q'], NULL, NULL, TRUE))); + $message[] = t("!name sent a message using the contact form at !form.", array('!name' => $form_values['name'], '!form' => url($_GET['q'], NULL, NULL, TRUE))); $message[] = $form_values['message']; // Tidy up the body: @@ -526,7 +526,7 @@ function contact_mail_page_submit($form_id, $form_values) { $contact = db_fetch_object(db_query("SELECT * FROM {contact} WHERE cid = %d", $form_values['cid'])); // Format the category: - $subject = t('[%category] %subject', array('%category' => $contact->category, '%subject' => $form_values['subject'])); + $subject = t('[!category] !subject', array('!category' => $contact->category, '!subject' => $form_values['subject'])); // Prepare the body: $body = implode("\n\n", $message); -- cgit v1.2.3