diff options
author | Andreas Gohr <andi@splitbrain.org> | 2011-11-12 08:59:26 -0800 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2011-11-12 08:59:26 -0800 |
commit | d415c8528f3326361ac6890ed6a703ef4e8b0494 (patch) | |
tree | 7e5e2c6dde27484cdf3d1bc8ddd31d4803f7bbe0 /inc/auth.php | |
parent | 2c961e6163b23ef3f1d93b1b0c23b214f3aeb358 (diff) | |
parent | 9a2d7c4ee07ce8e79be59e4be35e75462fd67d38 (diff) | |
download | rpg-d415c8528f3326361ac6890ed6a703ef4e8b0494.tar.gz rpg-d415c8528f3326361ac6890ed6a703ef4e8b0494.tar.bz2 |
Merge pull request #61 from lupo49/master
de/de-informal language updates / fixed using mailprefix in registration and password lost notifications
Diffstat (limited to 'inc/auth.php')
-rw-r--r-- | inc/auth.php | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/inc/auth.php b/inc/auth.php index eff984b36..e0f58e5f2 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -673,8 +673,14 @@ function auth_sendPassword($user,$password){ $text = str_replace('@PASSWORD@',$password,$text); $text = str_replace('@TITLE@',$conf['title'],$text); + if(empty($conf['mailprefix'])) { + $subject = $lang['regpwmail']; + } else { + $subject = '['.$conf['mailprefix'].'] '.$lang['regpwmail']; + } + return mail_send($userinfo['name'].' <'.$userinfo['mail'].'>', - $lang['regpwmail'], + $subject, $text, $conf['mailfrom']); } @@ -912,8 +918,14 @@ function act_resendpwd(){ $text = str_replace('@TITLE@',$conf['title'],$text); $text = str_replace('@CONFIRM@',$url,$text); + if(empty($conf['mailprefix'])) { + $subject = $lang['regpwmail']; + } else { + $subject = '['.$conf['mailprefix'].'] '.$lang['regpwmail']; + } + if(mail_send($userinfo['name'].' <'.$userinfo['mail'].'>', - $lang['regpwmail'], + $subject, $text, $conf['mailfrom'])){ msg($lang['resendpwdconfirm'],1); |