X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fwallmessage.php;h=fe3b9a82a6f641deb968c1964f2b2e65d1f760d9;hb=10ede7314136edb1c475e1af546a59ff4c5648cf;hp=b8859badd3d30504f6ea7c57f914e3a9be31ad5d;hpb=dfa5183774e24fe2b1a355c9427372d4cd55ea70;p=friendica.git diff --git a/mod/wallmessage.php b/mod/wallmessage.php index b8859badd3..fe3b9a82a6 100644 --- a/mod/wallmessage.php +++ b/mod/wallmessage.php @@ -1,8 +1,11 @@ get_baseurl() . '/profile/' . $user['nickname']); - + goaway('profile/'.$user['nickname']); + } -function wallmessage_content(&$a) { +function wallmessage_content(App $a) { if(! get_my_url()) { notice( t('Permission denied.') . EOL); @@ -91,7 +88,7 @@ function wallmessage_content(&$a) { dbesc($recipient) ); - if(! count($r)) { + if (! dbm::is_result($r)) { notice( t('No recipient.') . EOL); logger('wallmessage: no recipient'); return; @@ -113,30 +110,20 @@ function wallmessage_content(&$a) { return; } - - - $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' => $editselect, + '$baseurl' => System::baseUrl(true), '$nickname' => $user['nickname'], '$linkurl' => t('Please enter a link URL:') )); $tpl = get_markup_template('wallmsg-end.tpl'); $a->page['end'] .= replace_macros($tpl, array( - '$baseurl' => $a->get_baseurl(true), - '$editselect' => $editselect, + '$baseurl' => System::baseUrl(true), '$nickname' => $user['nickname'], '$linkurl' => t('Please enter a link URL:') )); - - $tpl = get_markup_template('wallmessage.tpl'); $o .= replace_macros($tpl,array( '$header' => t('Send Private Message'),