File tree 2 files changed +16
-4
lines changed
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(
1744
1744
$ tplContent ->assign ('status_type ' , $ status );
1745
1745
$ creatorInfo = api_get_user_info ($ creator_id );
1746
1746
$ 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 );
1748
1759
1749
1760
if (!is_null ($ password ) && api_get_configuration_value ('send_two_inscription_confirmation_mail ' )) {
1750
1761
// The user has a new password *and* we need to tell him so,
@@ -1767,7 +1778,7 @@ public static function update_user(
1767
1778
api_mail_html (
1768
1779
$ recipient_name ,
1769
1780
$ email ,
1770
- $ emailsubject ,
1781
+ $ emailSubject ,
1771
1782
$ emailBody ,
1772
1783
$ sender_name ,
1773
1784
$ email_admin ,
@@ -1795,7 +1806,7 @@ public static function update_user(
1795
1806
api_mail_html (
1796
1807
$ recipient_name ,
1797
1808
$ email ,
1798
- $ emailsubject ,
1809
+ $ emailSubject ,
1799
1810
$ emailBody ,
1800
1811
$ sender_name ,
1801
1812
$ email_admin ,
@@ -1823,7 +1834,7 @@ public static function update_user(
1823
1834
api_mail_html (
1824
1835
$ recipient_name ,
1825
1836
$ email ,
1826
- $ emailsubject ,
1837
+ $ emailSubject ,
1827
1838
$ emailBody ,
1828
1839
$ sender_name ,
1829
1840
$ 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