File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -207,14 +207,14 @@ function user_insert($event_name, $data) {
207207
208208 //* Send the welcome email message
209209 $ domain = explode ('@ ' , $ data ["new " ]["email " ])[1 ];
210- $ html = False ;
211- if (file_exists ($ conf ['rootpath ' ].'/conf-custom/mail/welcome_email_ ' .$ domain .'.html ' )) {
210+ $ html = false ;
211+ if (file_exists ($ conf ['rootpath ' ].'/conf-custom/mail/welcome_email_ ' .$ domain .'.html ' )) {
212212 $ lines = file ($ conf ['rootpath ' ].'/conf-custom/mail/welcome_email_ ' .$ domain .'.html ' );
213- $ html = True ;
214- } elseif (file_exists ($ conf ['rootpath ' ].'/conf-custom/mail/welcome_email_ ' .$ conf ['language ' ].'.html ' )) {
213+ $ html = true ;
214+ } elseif (file_exists ($ conf ['rootpath ' ].'/conf-custom/mail/welcome_email_ ' .$ conf ['language ' ].'.html ' )) {
215215 $ lines = file ($ conf ['rootpath ' ].'/conf-custom/mail/welcome_email_ ' .$ conf ['language ' ].'.html ' );
216- $ html = True ;
217- } elseif (file_exists ($ conf ['rootpath ' ].'/conf-custom/mail/welcome_email_ ' .$ domain .'.txt ' )) {
216+ $ html = true ;
217+ } elseif (file_exists ($ conf ['rootpath ' ].'/conf-custom/mail/welcome_email_ ' .$ domain .'.txt ' )) {
218218 $ lines = file ($ conf ['rootpath ' ].'/conf-custom/mail/welcome_email_ ' .$ domain .'.txt ' );
219219 } elseif (file_exists ($ conf ['rootpath ' ].'/conf-custom/mail/welcome_email_ ' .$ conf ['language ' ].'.txt ' )) {
220220 $ lines = file ($ conf ['rootpath ' ].'/conf-custom/mail/welcome_email_ ' .$ conf ['language ' ].'.txt ' );
@@ -243,7 +243,7 @@ function user_insert($event_name, $data) {
243243 unset($ tmp );
244244
245245 $ mailHeaders = "MIME-Version: 1.0 " . "\n" ;
246- if ($ html ){
246+ if ($ html ) {
247247 $ mailHeaders .= "Content-Type: text/html; charset=utf-8 " . "\n" ;
248248 $ mailHeaders .= "Content-Transfer-Encoding: quoted-printable " . "\n" ;
249249 } else {
You can’t perform that action at this time.
0 commit comments