Merge pull request #5217 from MrPetovan/bug/5191-fix-registration-email
Fix corrupt registration emails
This commit is contained in:
commit
641ca5c08e
|
@ -366,7 +366,7 @@ function notification($params)
|
||||||
'[url='.$params['source_link'].']'.$params['source_name'].'[/url]'
|
'[url='.$params['source_link'].']'.$params['source_name'].'[/url]'
|
||||||
);
|
);
|
||||||
|
|
||||||
$body = L10n::t('Full Name: %1$s\nSite Location: %2$s\nLogin Name: %3$s ' . "\x28" . '%4$s' . "\x29",
|
$body = L10n::t("Full Name: %s\nSite Location: %s\nLogin Name: %s (%s)",
|
||||||
$params['source_name'],
|
$params['source_name'],
|
||||||
$siteurl, $params['source_mail'],
|
$siteurl, $params['source_mail'],
|
||||||
$params['source_nick']
|
$params['source_nick']
|
||||||
|
@ -562,11 +562,8 @@ function notification($params)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// textversion keeps linebreaks
|
$textversion = BBCode::toPlaintext($body);
|
||||||
$textversion = strip_tags(str_replace("<br>", "\n", html_entity_decode(BBCode::convert(stripslashes(str_replace(["\\r\\n", "\\r", "\\n"], "\n",
|
$htmlversion = BBCode::convert($body);
|
||||||
$body))),ENT_QUOTES, 'UTF-8')));
|
|
||||||
$htmlversion = html_entity_decode(BBCode::convert(stripslashes(str_replace(["\\r\\n", "\\r", "\\n\\n", "\\n"],
|
|
||||||
"<br />\n", $body))), ENT_QUOTES, 'UTF-8');
|
|
||||||
|
|
||||||
$datarray = [];
|
$datarray = [];
|
||||||
$datarray['banner'] = $banner;
|
$datarray['banner'] = $banner;
|
||||||
|
|
Loading…
Reference in a new issue