/**
* @file mod/dirfind.php
*/
+
use Friendica\App;
use Friendica\Content\ContactSelector;
use Friendica\Content\Widget;
use Friendica\Core\L10n;
use Friendica\Core\System;
use Friendica\Core\Worker;
+use Friendica\Database\dba;
+use Friendica\Database\DBM;
use Friendica\Model\Contact;
use Friendica\Model\GContact;
-use Friendica\Model\Profile;
use Friendica\Network\Probe;
use Friendica\Protocol\PortableContact;
use Friendica\Util\Network;
-use Friendica\Database\DBM;
require_once 'mod/contacts.php';
$a->set_pager_itemspage($j->items_page);
}
- if (count($j->results)) {
+ if (!empty($j->results)) {
$id = 0;
$connlnk = System::baseUrl().'/follow/?url='.(($jj->connect) ? $jj->connect : $jj->url);
$conntxt = L10n::t('Connect');
$photo_menu = [
- 'profile' => [L10n::t("View Profile"), Profile::zrl($jj->url)],
+ 'profile' => [L10n::t("View Profile"), Contact::magicLink($jj->url)],
'follow' => [L10n::t("Connect/Follow"), $connlnk]
];
}
$entry = [
'alt_text' => $alt_text,
- 'url' => Profile::zrl($jj->url),
+ 'url' => Contact::magicLink($jj->url),
'itemurl' => $itemurl,
'name' => htmlentities($jj->name),
'thumb' => proxy_url($jj->photo, false, PROXY_SIZE_THUMB),