The triple linebreaks in notification emails finally bothered me enough to do something about it.

This commit is contained in:
friendica 2013-09-02 19:40:21 -07:00
parent a32d86f0a0
commit 1a7bb1fb75

View File

@ -379,11 +379,9 @@ function notification($params) {
logger('notification: sending notification email'); logger('notification: sending notification email');
$textversion = strip_tags(html_entity_decode(bbcode(stripslashes(str_replace(array("\\r\\n", "\\r", "\\n"), "\n", $textversion = strip_tags(html_entity_decode(bbcode(stripslashes(str_replace(array("\\r", "\\n"), array( "", "\n"), $body))),ENT_QUOTES,'UTF-8'));
$body))),ENT_QUOTES,'UTF-8'));
$htmlversion = html_entity_decode(bbcode(stripslashes(str_replace(array("\\r\\n", "\\r","\\n\\n" ,"\\n"), $htmlversion = html_entity_decode(bbcode(stripslashes(str_replace(array("\\r","\\n"), array("","<br />\n"),$body))), ENT_QUOTES,'UTF-8');
"<br />\n",$body))), ENT_QUOTES,'UTF-8');
// use $_SESSION['zid_override'] to force zid() to use // use $_SESSION['zid_override'] to force zid() to use