X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fhovercard.php;h=ec749db2088fbcfa1816185a0e198debd679e086;hb=8bdc906013461464b475c4f10918adff8730dea6;hp=9bd91f0d5a062ba28244c64240e5eee353d4d2e6;hpb=60b767168a29598c268f2b36e2fabd2ece31b92e;p=friendica.git diff --git a/mod/hovercard.php b/mod/hovercard.php index 9bd91f0d5a..ec749db208 100644 --- a/mod/hovercard.php +++ b/mod/hovercard.php @@ -11,7 +11,7 @@ require_once("include/socgraph.php"); require_once("include/Contact.php"); -function hovercard_init(&$a) { +function hovercard_init(App $a) { // Just for testing purposes $_GET["mode"] = "minimal"; } @@ -77,10 +77,9 @@ function hovercard_content() { // 'server_url' => $contact["server_url"], 'bd' => (($contact["birthday"] == "0000-00-00") ? "" : $contact["birthday"]), // 'generation' => $contact["generation"], - 'account_type' => ($contact['community'] ? t("Forum") : ""), + 'account_type' => account_type($contact), 'actions' => $actions, ); - if($datatype == "html") { $t = get_markup_template("hovercard.tpl"); @@ -97,10 +96,10 @@ function hovercard_content() { /** * @brief Get the raw content of a template file - * + * * @param string $template The name of the template * @param string $root Directory of the template - * + * * @return string|bool Output the raw content if existent, otherwise false */ function get_template_content($template, $root = "") {