From: rabuzarus <> Date: Thu, 28 May 2015 14:15:48 +0000 (+0200) Subject: use z_root X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5990d62b06c1de259e6844341c9de1c191e5a5ac;p=friendica.git use z_root --- 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;