X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fwallmessage.php;h=72897c0657f77adc057bc738085d91d1bf9e79d2;hb=6161ceff649fd52cb6cdfe14ebe5fdd35f6854a9;hp=b8859badd3d30504f6ea7c57f914e3a9be31ad5d;hpb=c5f2157eb2914de06ae098907b1dfb68fc4d03e3;p=friendica.git diff --git a/mod/wallmessage.php b/mod/wallmessage.php index b8859badd3..72897c0657 100644 --- a/mod/wallmessage.php +++ b/mod/wallmessage.php @@ -1,8 +1,10 @@ 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 +87,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,16 +109,9 @@ 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, '$nickname' => $user['nickname'], '$linkurl' => t('Please enter a link URL:') )); @@ -130,13 +119,10 @@ function wallmessage_content(&$a) { $tpl = get_markup_template('wallmsg-end.tpl'); $a->page['end'] .= replace_macros($tpl, array( '$baseurl' => $a->get_baseurl(true), - '$editselect' => $editselect, '$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'),