diff options
author | chris <chris@jalakai.co.uk> | 2006-08-22 09:24:44 +0200 |
---|---|---|
committer | chris <chris@jalakai.co.uk> | 2006-08-22 09:24:44 +0200 |
commit | 02a498e7884db0beaec6950e3b36bf4384daba93 (patch) | |
tree | 343727dac178c158b113758b777a2d97cb5af548 /inc/auth.php | |
parent | c93ca5e664887c483a60e441291b921c93747e13 (diff) | |
download | rpg-02a498e7884db0beaec6950e3b36bf4384daba93.tar.gz rpg-02a498e7884db0beaec6950e3b36bf4384daba93.tar.bz2 |
bug #876, additional data for new user notification email
This patch updates only the english version of the localised
"registermail.txt" file. Other versions need to be updated also.
darcs-hash:20060822072444-9b6ab-ff6cb5bc78277c383e82c3986eeb16168e86c27b.gz
Diffstat (limited to 'inc/auth.php')
-rw-r--r-- | inc/auth.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/inc/auth.php b/inc/auth.php index 6e97b12c0..40145ee78 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -501,16 +501,23 @@ function register(){ return false; } + // create substitutions for use in notification email + $substitutions = array( + 'NEWUSER' => $_POST['login'], + 'NEWNAME' => $_POST['fullname'], + 'NEWEMAIL' => $_POST['email'], + ); + if (!$conf['autopasswd']) { msg($lang['regsuccess2'],1); - notify('', 'register', '', $_POST['login'], false); + notify('', 'register', '', $_POST['login'], false, $substitutions); return true; } // autogenerated password? then send him the password if (auth_sendPassword($_POST['login'],$pass)){ msg($lang['regsuccess'],1); - notify('', 'register', '', $_POST['login'], false); + notify('', 'register', '', $_POST['login'], false, $substitutions); return true; }else{ msg($lang['regmailfail'],-1); |