X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fhovercard.php;h=5542fe5b9837738da8f93fec7b6d525b5c4ae746;hb=2196a0577b29dcec1ba4d2c32be10fa5f0e91034;hp=a5a41e26357756b6c0bf9e389fffb436ee5def2a;hpb=259f91caa9b13ed98adfaf4ac83fee56a7b1edbd;p=friendica.git diff --git a/mod/hovercard.php b/mod/hovercard.php index a5a41e2635..5542fe5b98 100644 --- a/mod/hovercard.php +++ b/mod/hovercard.php @@ -11,8 +11,7 @@ use Friendica\App; use Friendica\Core\Config; use Friendica\Model\GlobalContact; - -require_once "include/Contact.php"; +use Friendica\Object\Contact; function hovercard_init(App $a) { // Just for testing purposes @@ -51,14 +50,14 @@ function hovercard_content() { $nurl = normalise_link(GlobalContact::cleanContactUrl($profileurl)); if($nurl) { // Search for contact data - $contact = get_contact_details_by_url($nurl); + $contact = Contact::getDetailsByURL($nurl); } if(!is_array($contact)) return; // Get the photo_menu - the menu if possible contact actions if(local_user()) - $actions = contact_photo_menu($contact); + $actions = Contact::photoMenu($contact); // Move the contact data to the profile array so we can deliver it to @@ -80,7 +79,7 @@ function hovercard_content() { // 'server_url' => $contact["server_url"], 'bd' => (($contact["birthday"] <= '0001-01-01') ? "" : $contact["birthday"]), // 'generation' => $contact["generation"], - 'account_type' => account_type($contact), + 'account_type' => Contact::getAccountType($contact), 'actions' => $actions, ); if($datatype == "html") {