From 792cb7a5358c4b7f80b124d5a80c625a7d4d89ea Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Tue, 9 Dec 2008 03:27:50 -0500 Subject: fix registration bug - fatal error when sending email confirmation darcs-hash:20081209082750-7b5ce-6d06a7b1cda2a9afb6ce8ea64d65df81cc063139.gz --- lib/mail.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/mail.php') 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" . -- cgit v1.2.3-54-g00ecf