aboutsummaryrefslogtreecommitdiffstats
path: root/mod/lostpass.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/lostpass.php')
-rw-r--r--mod/lostpass.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/mod/lostpass.php b/mod/lostpass.php
index 0b5dc1376..30bdc059c 100644
--- a/mod/lostpass.php
+++ b/mod/lostpass.php
@@ -35,9 +35,8 @@ function lostpass_post(&$a) {
'$reset_link' => $a->get_baseurl() . '/lostpass?verify=' . $new_password
));
- $res = mail($email,"Password reset requested at {$a->config['sitename']}",$email_tpl,"From: Administrator@{$_SERVER[SERVER_NAME]}");
-
-
+ $res = mail($email, t('Password reset requested at ') . $a->config['sitename'],
+ $email_tpl, 'From: ' . t('Administrator') . '@' . $_SERVER[SERVER_NAME]);
goaway($a->get_baseurl());
}