summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2008-12-09 03:27:50 -0500
committerZach Copley <zach@controlyourself.ca>2008-12-09 03:27:50 -0500
commit792cb7a5358c4b7f80b124d5a80c625a7d4d89ea (patch)
tree1ffa10fdc85dff93fb77adc1cbbecb9b29d559dc /lib
parent3f8e60a8fc00b6aca924df077e7e353815dc69fd (diff)
fix registration bug - fatal error when sending email confirmation
darcs-hash:20081209082750-7b5ce-6d06a7b1cda2a9afb6ce8ea64d65df81cc063139.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/mail.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mail.php b/lib/mail.php
index e627730a7..313040ca2 100644
--- a/lib/mail.php
+++ b/lib/mail.php
@@ -85,8 +85,8 @@ function mail_to_user(&$user, $subject, $body, $address=NULL) {
# For confirming a Jabber address
-function mail_confirm_address($code, $nickname, $address) {
- $user = common_current_user();
+function mail_confirm_address($user, $code, $nickname, $address) {
+
$subject = _('Email address confirmation');
$body = sprintf(_("Hey, %s.\n\nSomeone just entered this email address on %s.\n\n" .