static App
This commit is contained in:
@@ -38,7 +38,7 @@ function send_message($uid = 0, $recipient='', $body='', $subject='', $replyto='
|
||||
$channel = $r[0];
|
||||
}
|
||||
else {
|
||||
$channel = get_app()->get_channel();
|
||||
$channel = App::get_channel();
|
||||
}
|
||||
|
||||
if(! $channel) {
|
||||
@@ -75,7 +75,7 @@ function send_message($uid = 0, $recipient='', $body='', $subject='', $replyto='
|
||||
if($recip)
|
||||
$recip_handle = $recip[0]['xchan_addr'];
|
||||
|
||||
$sender_handle = $channel['channel_address'] . '@' . get_app()->get_hostname();
|
||||
$sender_handle = $channel['channel_address'] . '@' . App::get_hostname();
|
||||
|
||||
$handles = $recip_handle . ';' . $sender_handle;
|
||||
|
||||
@@ -124,7 +124,7 @@ function send_message($uid = 0, $recipient='', $body='', $subject='', $replyto='
|
||||
$dups = false;
|
||||
$hash = random_string();
|
||||
|
||||
$mid = $hash . '@' . get_app()->get_hostname();
|
||||
$mid = $hash . '@' . App::get_hostname();
|
||||
|
||||
$r = q("SELECT id FROM mail WHERE mid = '%s' LIMIT 1",
|
||||
dbesc($mid));
|
||||
|
Reference in New Issue
Block a user