X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fmessage.php;h=9e966914668e40d760be76c3ac0e2f9e950e8fdd;hb=3e51ebd4995ee85220132ce1019fd1f712901679;hp=5f5f9f98efbd8f432048fcf2dc1f7ec87a6f7d5d;hpb=5eaa5951a1b19b985017b5db20f3b1abf464a1ef;p=friendica.git diff --git a/mod/message.php b/mod/message.php index 5f5f9f98ef..9e96691466 100644 --- a/mod/message.php +++ b/mod/message.php @@ -52,17 +52,6 @@ function message_post(App $a) { $body = ((x($_REQUEST,'body')) ? escape_tags(trim($_REQUEST['body'])) : ''); $recipient = ((x($_REQUEST,'messageto')) ? intval($_REQUEST['messageto']) : 0 ); - // Work around doubled linefeeds in Tinymce 3.5b2 - -/* $plaintext = intval(get_pconfig(local_user(),'system','plaintext') && !feature_enabled(local_user(),'richtext')); - if(! $plaintext) { - $body = fix_mce_lf($body); - }*/ - $plaintext = intval(!feature_enabled(local_user(),'richtext')); - if(! $plaintext) { - $body = fix_mce_lf($body); - } - $ret = send_message($recipient, $body, $subject, $replyto); $norecip = false; @@ -275,18 +264,9 @@ function message_content(App $a) { $o .= $header; -/* $plaintext = false; - if(intval(get_pconfig(local_user(),'system','plaintext'))) - $plaintext = true;*/ - $plaintext = true; - if( local_user() && feature_enabled(local_user(),'richtext') ) - $plaintext = false; - - $tpl = get_markup_template('msg-header.tpl'); $a->page['htmlhead'] .= replace_macros($tpl, array( '$baseurl' => App::get_baseurl(true), - '$editselect' => (($plaintext) ? 'none' : '/(profile-jot-text|prvmail-text)/'), '$nickname' => $a->user['nickname'], '$linkurl' => t('Please enter a link URL:') )); @@ -294,7 +274,6 @@ function message_content(App $a) { $tpl = get_markup_template('msg-end.tpl'); $a->page['end'] .= replace_macros($tpl, array( '$baseurl' => App::get_baseurl(true), - '$editselect' => (($plaintext) ? 'none' : '/(profile-jot-text|prvmail-text)/'), '$nickname' => $a->user['nickname'], '$linkurl' => t('Please enter a link URL:') )); @@ -397,10 +376,6 @@ function message_content(App $a) { $o .= $header; - $plaintext = true; - if( local_user() && feature_enabled(local_user(),'richtext') ) - $plaintext = false; - $r = q("SELECT `mail`.*, `contact`.`name`, `contact`.`url`, `contact`.`thumb` FROM `mail` LEFT JOIN `contact` ON `mail`.`contact-id` = `contact`.`id` WHERE `mail`.`uid` = %d AND `mail`.`id` = %d LIMIT 1", @@ -439,7 +414,6 @@ function message_content(App $a) { $tpl = get_markup_template('msg-header.tpl'); $a->page['htmlhead'] .= replace_macros($tpl, array( '$baseurl' => App::get_baseurl(true), - '$editselect' => (($plaintext) ? 'none' : '/(profile-jot-text|prvmail-text)/'), '$nickname' => $a->user['nickname'], '$linkurl' => t('Please enter a link URL:') )); @@ -447,12 +421,10 @@ function message_content(App $a) { $tpl = get_markup_template('msg-end.tpl'); $a->page['end'] .= replace_macros($tpl, array( '$baseurl' => App::get_baseurl(true), - '$editselect' => (($plaintext) ? 'none' : '/(profile-jot-text|prvmail-text)/'), '$nickname' => $a->user['nickname'], '$linkurl' => t('Please enter a link URL:') )); - $mails = array(); $seen = 0; $unknown = false;