]> git.mxchange.org Git - friendica.git/blobdiff - include/message.php
proc_run was replaced
[friendica.git] / include / message.php
index d6b1601110e9bb58f06cbd853e140d5f41e257d6..731a56c4c2a0d4e305aef88e598d390a1e7c836f 100644 (file)
@@ -4,6 +4,7 @@
 
 use Friendica\App;
 use Friendica\Core\System;
+use Friendica\Core\Worker;
 
 function send_message($recipient=0, $body='', $subject='', $replyto=''){
 
@@ -143,7 +144,7 @@ function send_message($recipient=0, $body='', $subject='', $replyto=''){
        }
 
        if ($post_id) {
-               proc_run(PRIORITY_HIGH, "include/notifier.php", "mail", $post_id);
+               Worker::add(PRIORITY_HIGH, "notifier", "mail", $post_id);
                return intval($post_id);
        } else {
                return -3;