use z_root
This commit is contained in:
parent
1067718018
commit
5990d62b06
2 changed files with 3 additions and 3 deletions
|
@ -23,7 +23,7 @@ function allfriends_content(&$a) {
|
||||||
$vcard_widget .= replace_macros(get_markup_template("vcard-widget.tpl"),array(
|
$vcard_widget .= replace_macros(get_markup_template("vcard-widget.tpl"),array(
|
||||||
'$name' => $c[0]['name'],
|
'$name' => $c[0]['name'],
|
||||||
'$photo' => $c[0]['photo'],
|
'$photo' => $c[0]['photo'],
|
||||||
'url' => $a->get_baseurl() . '/contacts/' . $cid
|
'url' => z_root() . '/contacts/' . $cid
|
||||||
));
|
));
|
||||||
|
|
||||||
if(! x($a->page,'aside'))
|
if(! x($a->page,'aside'))
|
||||||
|
|
|
@ -31,12 +31,12 @@ function common_content(&$a) {
|
||||||
$vcard_widget .= replace_macros(get_markup_template("vcard-widget.tpl"),array(
|
$vcard_widget .= replace_macros(get_markup_template("vcard-widget.tpl"),array(
|
||||||
'$name' => $c[0]['name'],
|
'$name' => $c[0]['name'],
|
||||||
'$photo' => $c[0]['photo'],
|
'$photo' => $c[0]['photo'],
|
||||||
'url' => $a->get_baseurl() . '/contacts/' . $cid
|
'url' => z_root() . '/contacts/' . $cid
|
||||||
));
|
));
|
||||||
|
|
||||||
if(! x($a->page,'aside'))
|
if(! x($a->page,'aside'))
|
||||||
$a->page['aside'] = '';
|
$a->page['aside'] = '';
|
||||||
$a->page['aside'] .= $vcard_widget;
|
$a->page['aside'] .= $vcard_widget;
|
||||||
|
|
||||||
if(! count($c))
|
if(! count($c))
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue