use z_root

This commit is contained in:
rabuzarus 2015-05-28 16:15:48 +02:00
parent 1067718018
commit 5990d62b06
2 changed files with 3 additions and 3 deletions

View file

@ -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'))

View file

@ -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;