User: [Minor] add user status to the variable sent to the mail template on user creation and edition -refs BT#19518

pull/4187/head^2
NicoDucou 4 years ago
parent 7b92a01090
commit a27203e5f2
  1. 4
      main/inc/lib/usermanager.lib.php

@ -544,6 +544,8 @@ class UserManager
$tplContent->assign('original_password', stripslashes($original_password));
$tplContent->assign('mailWebPath', $url);
$tplContent->assign('new_user', $user);
// Adding this variable but not used in default template, used for task BT19518 with a customized template
$tplContent->assign('status_type', $status);
$layoutContent = $tplContent->get_template('mail/content_registration_platform.tpl');
$emailBody = $tplContent->fetch($layoutContent);
@ -1652,6 +1654,8 @@ class UserManager
}
$tplContent->assign('original_password', $originalPassword);
$tplContent->assign('portal_url', $url);
// Adding this variable but not used in default template, used for task BT19518 with a customized template
$tplContent->assign('status_type', $status);
$layoutContent = $tplContent->get_template('mail/user_edit_content.tpl');
$emailBody = $tplContent->fetch($layoutContent);

Loading…
Cancel
Save