File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -1744,7 +1744,18 @@ public static function update_user(
17441744 $ tplContent ->assign ('status_type ' , $ status );
17451745 $ creatorInfo = api_get_user_info ($ creator_id );
17461746 $ creatorEmail = isset ($ creatorInfo ['email ' ]) ? $ creatorInfo ['email ' ] : '' ;
1747- $ emailsubject = '[ ' .api_get_setting ('siteName ' ).'] ' .get_lang ('YourReg ' ).' ' .api_get_setting ('siteName ' );
1747+ $ tplSubject = new Template (
1748+ null ,
1749+ false ,
1750+ false ,
1751+ false ,
1752+ false ,
1753+ false
1754+ );
1755+ // the complete_name is not used in the default Chamilo template but used in a specific template -refs BT#21334
1756+ $ tplSubject ->assign ('complete_name ' , stripslashes (api_get_person_name ($ firstName , $ lastName )));
1757+ $ layoutSubject = $ tplSubject ->get_template ('mail/subject_user_edit.tpl ' );
1758+ $ emailSubject = $ tplSubject ->fetch ($ layoutSubject );
17481759
17491760 if (!is_null ($ password ) && api_get_configuration_value ('send_two_inscription_confirmation_mail ' )) {
17501761 // The user has a new password *and* we need to tell him so,
@@ -1767,7 +1778,7 @@ public static function update_user(
17671778 api_mail_html (
17681779 $ recipient_name ,
17691780 $ email ,
1770- $ emailsubject ,
1781+ $ emailSubject ,
17711782 $ emailBody ,
17721783 $ sender_name ,
17731784 $ email_admin ,
@@ -1795,7 +1806,7 @@ public static function update_user(
17951806 api_mail_html (
17961807 $ recipient_name ,
17971808 $ email ,
1798- $ emailsubject ,
1809+ $ emailSubject ,
17991810 $ emailBody ,
18001811 $ sender_name ,
18011812 $ email_admin ,
@@ -1823,7 +1834,7 @@ public static function update_user(
18231834 api_mail_html (
18241835 $ recipient_name ,
18251836 $ email ,
1826- $ emailsubject ,
1837+ $ emailSubject ,
18271838 $ emailBody ,
18281839 $ sender_name ,
18291840 $ email_admin ,
Original file line number Diff line number Diff line change 1+ { { ' [' ~ _s.site_name ~ ' ] ' ~ ' YourReg' |get_lang ~ ' ' ~ _s.site_name } }
You can’t perform that action at this time.
0 commit comments