X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fmatch.php;h=6fa31f0132f1c95ac9760c7f9c172b7e566e7e4d;hb=4d5e15709c7c83aac7463e1f9467c7e0bd121f9f;hp=189210f4b54e07d50e2a814bd88a88c449511666;hpb=3c76826793feeb933dab7a07dab7cc7eb2efc451;p=friendica.git diff --git a/mod/match.php b/mod/match.php index 189210f4b5..6fa31f0132 100644 --- a/mod/match.php +++ b/mod/match.php @@ -4,12 +4,11 @@ */ use Friendica\App; -use Friendica\Content\Pager; use Friendica\Content\Widget; use Friendica\Core\Config; use Friendica\Core\L10n; use Friendica\Core\Renderer; -use Friendica\Core\System; +use Friendica\Core\Search; use Friendica\Database\DBA; use Friendica\DI; use Friendica\Model\Contact; @@ -36,8 +35,8 @@ function match_content(App $a) return ''; } - $a->page['aside'] .= Widget::findPeople(); - $a->page['aside'] .= Widget::follow(); + DI::page()['aside'] .= Widget::findPeople(); + DI::page()['aside'] .= Widget::follow(); $_SESSION['return_path'] = DI::args()->getCommand(); @@ -58,9 +57,9 @@ function match_content(App $a) $params['n'] = 100; if (strlen(Config::get('system', 'directory'))) { - $host = get_server(); + $host = Search::getGlobalDirectory(); } else { - $host = System::baseUrl(); + $host = DI::baseUrl(); } $msearch_json = Network::post($host . '/msearch', $params)->getBody(); @@ -81,9 +80,9 @@ function match_content(App $a) } // Workaround for wrong directory photo URL - $profile->photo = str_replace('http:///photo/', get_server() . '/photo/', $profile->photo); + $profile->photo = str_replace('http:///photo/', Search::getGlobalDirectory() . '/photo/', $profile->photo); - $connlnk = System::baseUrl() . '/follow/?url=' . $profile->url; + $connlnk = DI::baseUrl() . '/follow/?url=' . $profile->url; $photo_menu = [ 'profile' => [L10n::t("View Profile"), Contact::magicLink($profile->url)], 'follow' => [L10n::t("Connect/Follow"), $connlnk]