]> git.mxchange.org Git - friendica.git/blobdiff - include/message.php
Degrade priority step by step
[friendica.git] / include / message.php
index b94190ca00cf273c6e1acdb78a51fb1dd9300ec3..0c1ffff7cfaeec71ca374195f2d47af37e3b6216 100644 (file)
@@ -1,9 +1,8 @@
 <?php
 
-       // send a private message
-
-
+// send a private message
 
+use Friendica\App;
 
 function send_message($recipient=0, $body='', $subject='', $replyto=''){
 
@@ -109,7 +108,7 @@ function send_message($recipient=0, $body='', $subject='', $replyto=''){
        );
 
 
-       $r = q("SELECT * FROM `mail` WHERE `uri` = '%s' and `uid` = %d LIMIT 1",
+       $r = q("SELECT * FROM `mail` WHERE `uri` = '%s' AND `uid` = %d LIMIT 1",
                dbesc($uri),
                intval(local_user())
        );
@@ -175,7 +174,7 @@ function send_wallmessage($recipient='', $body='', $subject='', $replyto=''){
        $convid = 0;
        $reply = false;
 
-       require_once('include/Scrape.php');
+       require_once 'include/probe.php';
 
        $me = probe_url($replyto);