From 58d9b02e3e9673f0f4447446f8f1736bd9233e31 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 26 Feb 2006 19:44:45 +0000 Subject: - Patch #51189: fixed submit redirects. --- modules/user/user.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/user/user.module') diff --git a/modules/user/user.module b/modules/user/user.module index d2c3d94de..1601ba02a 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -1034,7 +1034,7 @@ function user_pass_submit($form_id, $form_values) { $mail_success = user_mail($account->mail, $subject, $body, $headers); if ($mail_success) { - watchdog('user', t('Password reset instructions mailed to %name at %email.', array('%name' => ''. $account->name .'', '%email' => ''. $account->mail .''))); + watchdog('user', t('Password reset instructions mailed to %name at %email.', array('%name' => ''. $account->name .'', '%email' => ''. $account->mail .''))); drupal_set_message(t('Further instructions have been sent to your e-mail address.')); } else { @@ -1220,7 +1220,7 @@ function user_register_submit($form_id, $form_values) { $body = _user_mail_text('welcome_body', $variables); user_mail($mail, $subject, $body, "From: $from\nReply-to: $from\nX-Mailer: Drupal\nReturn-path: $from\nErrors-to: $from"); drupal_set_message(t('Your password and further instructions have been sent to your e-mail address.')); - + return ''; } else { // Create new user account, administrator approval required. -- cgit v1.2.3