From 18e225b05167261429df0e8dc4e6acf5cefd6c2a Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 10 Apr 2012 17:14:07 -0700 Subject: move all fix_mce to one function so it can easily be undone --- mod/item.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mod/item.php') diff --git a/mod/item.php b/mod/item.php index c30b17457..7f0ca3fc3 100644 --- a/mod/item.php +++ b/mod/item.php @@ -272,8 +272,7 @@ function item_post(&$a) { $plaintext = (local_user() ? intval(get_pconfig(local_user(),'system','plaintext')) : 0); if((! $parent) && (! $api_source) && (! $plaintext)) { - $body = str_replace("\r\n","\n",$body); - $body = str_replace("\n\n","\n",$body); + $body = fix_mce_lf($body); } -- cgit v1.2.3