]> git.mxchange.org Git - friendica.git/blobdiff - mod/dirfind.php
proc_run was replaced
[friendica.git] / mod / dirfind.php
index 884eca9a663d5426b49bd962d672f486352ed652..a1253b1442d9a8c9b917b2aaf327669ecb93e4e9 100644 (file)
@@ -1,6 +1,8 @@
 <?php
 
 use Friendica\App;
+use Friendica\Core\System;
+use Friendica\Core\Worker;
 
 require_once 'include/contact_widgets.php';
 require_once 'include/probe.php';
@@ -163,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'] : '');
@@ -205,7 +207,7 @@ function dirfind_content(App $a, $prefix = "") {
                                                $photo_menu = array();
                                        }
                                } else {
-                                       $connlnk = App::get_baseurl().'/follow/?url='.(($jj->connect) ? $jj->connect : $jj->url);
+                                       $connlnk = System::baseUrl().'/follow/?url='.(($jj->connect) ? $jj->connect : $jj->url);
                                        $conntxt = t('Connect');
                                        $photo_menu = array(
                                                'profile' => array(t("View Profile"), zrl($jj->url)),