summaryrefslogtreecommitdiff
path: root/modules/contact
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-11-07 12:09:55 +0000
committerDries Buytaert <dries@buytaert.net>2006-11-07 12:09:55 +0000
commitdd7b44c4179b39788a1a6d9b3f0cd4eba0410f0e (patch)
tree41adbc955d00440e6b3a2a7cf8158761a7f2cb88 /modules/contact
parent9e7f41cd9161f3f17003fb1d56a9ae3663b7965b (diff)
downloadbrdo-dd7b44c4179b39788a1a6d9b3f0cd4eba0410f0e.tar.gz
brdo-dd7b44c4179b39788a1a6d9b3f0cd4eba0410f0e.tar.bz2
- Patch #92845 by chx: fixed contact module placeholders in e-mail messages.
Diffstat (limited to 'modules/contact')
-rw-r--r--modules/contact/contact.module4
1 files changed, 2 insertions, 2 deletions
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);