diff options
author | Andreas Gohr <andi@splitbrain.org> | 2010-11-05 11:18:31 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2010-11-05 11:18:31 +0100 |
commit | 5ec3fefc5fc0983d6fdc0efdaed2e78e0d09a868 (patch) | |
tree | fbc212097c9c0abc1f6d5100ca1c39239dc77aa0 /inc/common.php | |
parent | 317d85c9da899f7720469b4831116604488ba503 (diff) | |
download | rpg-5ec3fefc5fc0983d6fdc0efdaed2e78e0d09a868.tar.gz rpg-5ec3fefc5fc0983d6fdc0efdaed2e78e0d09a868.tar.bz2 |
handle mailfrom replacements in a central place FS#2091
Diffstat (limited to 'inc/common.php')
-rw-r--r-- | inc/common.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/inc/common.php b/inc/common.php index 3e760419f..881179f4b 100644 --- a/inc/common.php +++ b/inc/common.php @@ -1134,12 +1134,7 @@ function notify($id,$who,$rev='',$summary='',$minor=false,$replace=array()){ $subject = '['.utf8_substr($conf['title'], 0, 20).'...] '.$subject; } - $from = $conf['mailfrom']; - $from = str_replace('@USER@',$_SERVER['REMOTE_USER'],$from); - $from = str_replace('@NAME@',$INFO['userinfo']['name'],$from); - $from = str_replace('@MAIL@',$INFO['userinfo']['mail'],$from); - - mail_send($to,$subject,$text,$from,'',$bcc); + mail_send($to,$subject,$text,$conf['mailfrom'],'',$bcc); } /** |