diff --git a/mod/allfriends.php b/mod/allfriends.php index b73c55c22..c32a05a2c 100644 --- a/mod/allfriends.php +++ b/mod/allfriends.php @@ -23,7 +23,7 @@ function allfriends_content(&$a) { $vcard_widget .= replace_macros(get_markup_template("vcard-widget.tpl"),array( '$name' => $c[0]['name'], '$photo' => $c[0]['photo'], - 'url' => $a->get_baseurl() . '/contacts/' . $cid + 'url' => z_root() . '/contacts/' . $cid )); if(! x($a->page,'aside')) diff --git a/mod/common.php b/mod/common.php index 6a1bf4e31..a4320f9eb 100644 --- a/mod/common.php +++ b/mod/common.php @@ -31,12 +31,12 @@ function common_content(&$a) { $vcard_widget .= replace_macros(get_markup_template("vcard-widget.tpl"),array( '$name' => $c[0]['name'], '$photo' => $c[0]['photo'], - 'url' => $a->get_baseurl() . '/contacts/' . $cid + 'url' => z_root() . '/contacts/' . $cid )); if(! x($a->page,'aside')) $a->page['aside'] = ''; - $a->page['aside'] .= $vcard_widget; + $a->page['aside'] .= $vcard_widget; if(! count($c)) return;