summaryrefslogtreecommitdiffstats
path: root/wp-login.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-05-26 15:28:39 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-05-26 15:28:39 +0000
commit57d1a984f6b10572b02d769c24add1c178e1e7a4 (patch)
tree7a98841fb15d4541af56ed5d76920cba794ca7a6 /wp-login.php
parente14c9a28cf3209268483b1f71b960e4fddd556ee (diff)
downloadwordpress-mu-57d1a984f6b10572b02d769c24add1c178e1e7a4.tar.gz
wordpress-mu-57d1a984f6b10572b02d769c24add1c178e1e7a4.tar.xz
wordpress-mu-57d1a984f6b10572b02d769c24add1c178e1e7a4.zip
Oops, need the correct site name here
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1314 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-login.php')
-rw-r--r--wp-login.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/wp-login.php b/wp-login.php
index 797bf18..05a86d4 100644
--- a/wp-login.php
+++ b/wp-login.php
@@ -111,7 +111,7 @@ function retrieve_password() {
}
function reset_password($key) {
- global $wpdb;
+ global $wpdb, $current_site;
$key = preg_replace('/[^a-z0-9]/i', '', $key);
@@ -131,7 +131,7 @@ function reset_password($key) {
$message .= sprintf(__('Password: %s'), $new_pass) . "\r\n";
$message .= get_option('siteurl') . "/wp-login.php\r\n";
- if ( !wp_mail($user->user_email, sprintf(__('[%s] Your new password'), 'WordPress.com'), $message) )
+ if ( !wp_mail($user->user_email, sprintf(__('[%s] Your new password'), $current_site->site_name), $message) )
die('<p>' . __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function...') . '</p>');
// send a copy of password change notification to the admin