From 5990d62b06c1de259e6844341c9de1c191e5a5ac Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Thu, 28 May 2015 16:15:48 +0200 Subject: [PATCH] use z_root --- mod/allfriends.php | 2 +- mod/common.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/allfriends.php b/mod/allfriends.php index b73c55c226..c32a05a2ce 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 6a1bf4e31b..a4320f9eb9 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;