require_once('include/message.php');
-if(! function_exists('wallmessage_post')) {
function wallmessage_post(&$a) {
$replyto = get_my_url();
dbesc($recipient)
);
- if(! count($r)) {
+ if (! dbm::is_result($r)) {
logger('wallmessage: no recipient');
return;
}
info( t('Message sent.') . EOL );
}
-// goaway($a->get_baseurl() . '/profile/' . $user['nickname']);
-}
+ goaway('profile/'.$user['nickname']);
+
}
-if(! function_exists('wallmessage_content')) {
+
function wallmessage_content(&$a) {
if(! get_my_url()) {
dbesc($recipient)
);
- if(! count($r)) {
+ if (! dbm::is_result($r)) {
notice( t('No recipient.') . EOL);
logger('wallmessage: no recipient');
return;
'$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'),
return $o;
}
-}