X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fwallmessage.php;h=b8859badd3d30504f6ea7c57f914e3a9be31ad5d;hb=fd8df4c4d6688e5ffd6bc78e14062aa064102715;hp=a01dfd2b9f7fde6f4f518899456be6fe4b8fb10b;hpb=9330a6994c1b9aee49a482efe32e84ca1a944c9b;p=friendica.git diff --git a/mod/wallmessage.php b/mod/wallmessage.php index a01dfd2b9f..b8859badd3 100644 --- a/mod/wallmessage.php +++ b/mod/wallmessage.php @@ -2,7 +2,6 @@ require_once('include/message.php'); -if(! function_exists('wallmessage_post')) { function wallmessage_post(&$a) { $replyto = get_my_url(); @@ -49,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){ @@ -70,10 +69,10 @@ function wallmessage_post(&$a) { } // goaway($a->get_baseurl() . '/profile/' . $user['nickname']); + } -} -if(! function_exists('wallmessage_content')) { + function wallmessage_content(&$a) { if(! get_my_url()) { @@ -135,9 +134,9 @@ function wallmessage_content(&$a) { '$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'), @@ -159,4 +158,3 @@ function wallmessage_content(&$a) { return $o; } -}