diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-02-26 19:44:45 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-02-26 19:44:45 +0000 |
commit | 58d9b02e3e9673f0f4447446f8f1736bd9233e31 (patch) | |
tree | 43c373cf468885f45a25e35083b0df1ce4d7e97a /modules/user/user.module | |
parent | 534c6d4f7c65e40f81a02b5b05a33263cffd9474 (diff) | |
download | brdo-58d9b02e3e9673f0f4447446f8f1736bd9233e31.tar.gz brdo-58d9b02e3e9673f0f4447446f8f1736bd9233e31.tar.bz2 |
- Patch #51189: fixed submit redirects.
Diffstat (limited to 'modules/user/user.module')
-rw-r--r-- | modules/user/user.module | 4 |
1 files changed, 2 insertions, 2 deletions
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' => '<em>'. $account->name .'</em>', '%email' => '<em>'. $account->mail .'</em>'))); + watchdog('user', t('Password reset instructions mailed to %name at %email.', array('%name' => '<em>'. $account->name .'</em>', '%email' => '<em>'. $account->mail .'</em>'))); 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. |