Skip to content

Commit b595714

Browse files
author
Till Brehm
committed
Merge branch 'patch-2' into 'master'
Update mail_plugin.inc.php. See merge request !645
2 parents cdc9434 + da1a0f8 commit b595714

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/plugins-available/mail_plugin.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,11 @@ function user_insert($event_name, $data) {
213213
if(file_exists($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$domain.'.html')) {
214214
$lines = file($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$domain.'.html');
215215
$html = true;
216+
} elseif(file_exists($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$domain.'.txt')) {
217+
$lines = file($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$domain.'.txt');
216218
} elseif(file_exists($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$conf['language'].'.html')) {
217219
$lines = file($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$conf['language'].'.html');
218220
$html = true;
219-
} elseif(file_exists($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$domain.'.txt')) {
220-
$lines = file($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$domain.'.txt');
221221
} elseif(file_exists($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$conf['language'].'.txt')) {
222222
$lines = file($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$conf['language'].'.txt');
223223
} elseif(file_exists($conf['rootpath'].'/conf-custom/mail/welcome_email_en.txt')) {

0 commit comments

Comments
 (0)