From 02a498e7884db0beaec6950e3b36bf4384daba93 Mon Sep 17 00:00:00 2001 From: chris Date: Tue, 22 Aug 2006 09:24:44 +0200 Subject: 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 --- inc/auth.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'inc/auth.php') 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); -- cgit v1.2.3