Merge branch 'ilosada-7225chamilo' into 1.9.x

1.9.x
Yannick Warnier 10 years ago
commit 7cc8efb36c
  1. 1
      main/inc/ajax/user_manager.ajax.php
  2. 22
      main/user/user_add.php

@ -82,7 +82,6 @@ switch ($action) {
//Send and email if account is active //Send and email if account is active
if ($status == 1) { if ($status == 1) {
$user_info = api_get_user_info($user_id); $user_info = api_get_user_info($user_id);
$recipient_name = api_get_person_name($user_info['firstname'], $user_info['lastname'], null, PERSON_NAME_EMAIL_ADDRESS); $recipient_name = api_get_person_name($user_info['firstname'], $user_info['lastname'], null, PERSON_NAME_EMAIL_ADDRESS);
$emailsubject = '['.api_get_setting('siteName').'] '.get_lang('YourReg').' '.api_get_setting('siteName'); $emailsubject = '['.api_get_setting('siteName').'] '.get_lang('YourReg').' '.api_get_setting('siteName');

@ -210,20 +210,18 @@ if($register) {
); );
api_mail_html( api_mail_html(
$recipient_name, $recipient_name,
$email_form, $email_form,
$emailsubject, $emailsubject,
$emailbody, $emailbody,
$sender_name, $sender_name,
$email_admin, $email_admin,
null, null,
null, null,
null, null,
$additionalParameters $additionalParameters
); );
//@api_mail($recipient_name, $email_form, $emailsubject, $emailbody, $sender_name,$email_admin);
/* /*
* remove <form> variables to prevent any pre-filled fields * remove <form> variables to prevent any pre-filled fields
*/ */

Loading…
Cancel
Save