move all fix_mce to one function so it can easily be undone
This commit is contained in:
parent
ab46f95683
commit
18e225b051
|
@ -272,8 +272,7 @@ function item_post(&$a) {
|
||||||
|
|
||||||
$plaintext = (local_user() ? intval(get_pconfig(local_user(),'system','plaintext')) : 0);
|
$plaintext = (local_user() ? intval(get_pconfig(local_user(),'system','plaintext')) : 0);
|
||||||
if((! $parent) && (! $api_source) && (! $plaintext)) {
|
if((! $parent) && (! $api_source) && (! $plaintext)) {
|
||||||
$body = str_replace("\r\n","\n",$body);
|
$body = fix_mce_lf($body);
|
||||||
$body = str_replace("\n\n","\n",$body);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -48,8 +48,7 @@ function message_post(&$a) {
|
||||||
|
|
||||||
$plaintext = intval(get_pconfig(local_user(),'system','plaintext'));
|
$plaintext = intval(get_pconfig(local_user(),'system','plaintext'));
|
||||||
if(! $plaintext) {
|
if(! $plaintext) {
|
||||||
$body = str_replace("\r\n","\n",$body);
|
$body = fix_mce_lf($body);
|
||||||
$body = str_replace("\n\n","\n",$body);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$ret = send_message($recipient, $body, $subject, $replyto);
|
$ret = send_message($recipient, $body, $subject, $replyto);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user