summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Harder2006-08-11 22:51:40 (GMT)
committer Alan Harder2006-08-11 22:51:40 (GMT)
commit85769d1992b870525f2f08a8d1adf49706a32584 (patch)
treeed411f48b33af860f25edeba88c72b5c115cd430
parentedd074cd4281f994e991da82e44b56278993697f (diff)
In email, link to user/login?destination=privatemsg instead of directly to
privatemsg, to avoid error if not logged in (if already logged in, drupal will redirect right to privatemsg)
-rw-r--r--privatemsg.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/privatemsg.module b/privatemsg.module
index 8a1fbf2..872bcd6 100644
--- a/privatemsg.module
+++ b/privatemsg.module
@@ -224,7 +224,7 @@ To read your messages, follow this link:
%link1
If you don\'t want to receive these email again, change your preferences here:
-%link2', array('%name' => $user->name, '%site' => variable_get('site_name', 'drupal'), '%new' => $alert->c, '%link1' => url('privatemsg', NULL, NULL, 1), '%link2' => url('user/'. $user->uid .'/edit', NULL, NULL, 1)));
+%link2', array('%name' => $user->name, '%site' => variable_get('site_name', 'drupal'), '%new' => $alert->c, '%link1' => url('user/login', 'destination=privatemsg', NULL, 1), '%link2' => url('user/'. $user->uid .'/edit', NULL, NULL, 1)));
user_mail($user->mail, $subject, $message, "From: $from\nReply-to: $from\nX-Mailer: Drupal\nReturn-path: $from\nErrors-to: $from");