The triple linebreaks in notification emails finally bothered me enough to do something about it.
This commit is contained in:
parent
a32d86f0a0
commit
1a7bb1fb75
@ -379,11 +379,9 @@ function notification($params) {
|
||||
logger('notification: sending notification email');
|
||||
|
||||
|
||||
$textversion = strip_tags(html_entity_decode(bbcode(stripslashes(str_replace(array("\\r\\n", "\\r", "\\n"), "\n",
|
||||
$body))),ENT_QUOTES,'UTF-8'));
|
||||
$textversion = strip_tags(html_entity_decode(bbcode(stripslashes(str_replace(array("\\r", "\\n"), array( "", "\n"), $body))),ENT_QUOTES,'UTF-8'));
|
||||
|
||||
$htmlversion = html_entity_decode(bbcode(stripslashes(str_replace(array("\\r\\n", "\\r","\\n\\n" ,"\\n"),
|
||||
"<br />\n",$body))), ENT_QUOTES,'UTF-8');
|
||||
$htmlversion = html_entity_decode(bbcode(stripslashes(str_replace(array("\\r","\\n"), array("","<br />\n"),$body))), ENT_QUOTES,'UTF-8');
|
||||
|
||||
|
||||
// use $_SESSION['zid_override'] to force zid() to use
|
||||
|
Reference in New Issue
Block a user