X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fwallmessage.php;h=8642624a476e4b75c3c0f7dbb99cf5ba0e5ebbab;hb=6d16c39b7eff0eb4e7283e2b768a0608752f4b7b;hp=24d21883b938ab68807f118400b3baeff32f0daa;hpb=9ecb9842858541db669e6ee61627e8526bf4c719;p=friendica.git diff --git a/mod/wallmessage.php b/mod/wallmessage.php index 24d21883b9..8642624a47 100644 --- a/mod/wallmessage.php +++ b/mod/wallmessage.php @@ -48,7 +48,7 @@ function wallmessage_post(&$a) { $body = str_replace("\r\n","\n",$body); $body = str_replace("\n\n","\n",$body); - + $ret = send_wallmessage($user, $body, $subject, $replyto); switch($ret){ @@ -68,8 +68,8 @@ function wallmessage_post(&$a) { info( t('Message sent.') . EOL ); } -// goaway($a->get_baseurl() . '/profile/' . $user['nickname']); - + goaway('profile/'.$user['nickname']); + } @@ -115,10 +115,14 @@ function wallmessage_content(&$a) { + $editselect = 'none'; + if( feature_enabled(local_user(), 'richtext') ) + $editselect = '/(profile-jot-text|prvmail-text)/'; + $tpl = get_markup_template('wallmsg-header.tpl'); $a->page['htmlhead'] .= replace_macros($tpl, array( '$baseurl' => $a->get_baseurl(true), - '$editselect' => '/(profile-jot-text|prvmail-text)/', + '$editselect' => $editselect, '$nickname' => $user['nickname'], '$linkurl' => t('Please enter a link URL:') )); @@ -126,7 +130,7 @@ function wallmessage_content(&$a) { $tpl = get_markup_template('wallmsg-end.tpl'); $a->page['end'] .= replace_macros($tpl, array( '$baseurl' => $a->get_baseurl(true), - '$editselect' => '/(profile-jot-text|prvmail-text)/', + '$editselect' => $editselect, '$nickname' => $user['nickname'], '$linkurl' => t('Please enter a link URL:') ));