]> git.mxchange.org Git - friendica.git/blobdiff - mod/dirfind.php
proc_run was replaced
[friendica.git] / mod / dirfind.php
index 7d167494e6b6f7d1dd2f5729142cc846ca84adf2..a1253b1442d9a8c9b917b2aaf327669ecb93e4e9 100644 (file)
@@ -2,6 +2,7 @@
 
 use Friendica\App;
 use Friendica\Core\System;
+use Friendica\Core\Worker;
 
 require_once 'include/contact_widgets.php';
 require_once 'include/probe.php';
@@ -164,7 +165,7 @@ function dirfind_content(App $a, $prefix = "") {
                        }
 
                        // Add found profiles from the global directory to the local directory
-                       proc_run(PRIORITY_LOW, 'include/discover_poco.php', "dirsearch", urlencode($search));
+                       Worker::add(PRIORITY_LOW, 'discover_poco', "dirsearch", urlencode($search));
                } else {
 
                        $p = (($a->pager['page'] != 1) ? '&p=' . $a->pager['page'] : '');