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";
}
+
function hovercard_content() {
$profileurl = (x($_REQUEST,'profileurl') ? $_REQUEST['profileurl'] : "");
$datatype = (x($_REQUEST,'datatype') ?$_REQUEST['datatype'] : "json");
'tags' => $contact["keywords"],
// 'nsfw' => intval($contact["nsfw"]),
// 'server_url' => $contact["server_url"],
- 'bd' => (($contact["birthday"] == "0000-00-00") ? "" : $contact["birthday"]),
+ 'bd' => (($contact["birthday"] <= '0001-01-01') ? "" : $contact["birthday"]),
// 'generation' => $contact["generation"],
'account_type' => account_type($contact),
'actions' => $actions,
/**
* @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 = "") {