ensure that jot_plugins inherit '$visitor' correctly
This commit is contained in:
parent
d322bb4613
commit
4e63b0acb9
|
@ -79,8 +79,10 @@ function network_content(&$a, $update = 0) {
|
||||||
|
|
||||||
$celeb = ((($a->user['page-flags'] == PAGE_SOAPBOX) || ($a->user['page-flags'] == PAGE_COMMUNITY)) ? true : false);
|
$celeb = ((($a->user['page-flags'] == PAGE_SOAPBOX) || ($a->user['page-flags'] == PAGE_COMMUNITY)) ? true : false);
|
||||||
|
|
||||||
$jotplugins = "";
|
$jotplugins = "";
|
||||||
call_hooks('jot_tool', $jotplugins);
|
call_hooks('jot_tool', $jotplugins);
|
||||||
|
|
||||||
|
$tpl = replace_macros($tpl,array('$jotplugins' => $jotplugins));
|
||||||
|
|
||||||
$o .= replace_macros($tpl,array(
|
$o .= replace_macros($tpl,array(
|
||||||
'$return_path' => $a->cmd,
|
'$return_path' => $a->cmd,
|
||||||
|
@ -92,8 +94,7 @@ function network_content(&$a, $update = 0) {
|
||||||
'$lockstate' => $lockstate,
|
'$lockstate' => $lockstate,
|
||||||
'$acl' => populate_acl((($group) ? $group_acl : $a->user), $celeb),
|
'$acl' => populate_acl((($group) ? $group_acl : $a->user), $celeb),
|
||||||
'$bang' => (($group) ? '!' : ''),
|
'$bang' => (($group) ? '!' : ''),
|
||||||
'$profile_uid' => $_SESSION['uid'],
|
'$profile_uid' => $_SESSION['uid']
|
||||||
'$jotplugins' => $jotplugins
|
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -135,9 +135,11 @@ function profile_content(&$a, $update = 0) {
|
||||||
else
|
else
|
||||||
$lockstate = 'unlock';
|
$lockstate = 'unlock';
|
||||||
|
|
||||||
$jotplugins = "";
|
$jotplugins = "";
|
||||||
call_hooks('jot_tool', $jotplugins);
|
call_hooks('jot_tool', $jotplugins);
|
||||||
|
|
||||||
|
$tpl = replace_macros($tpl,array('$jotplugins' => $jotplugins));
|
||||||
|
|
||||||
$o .= replace_macros($tpl,array(
|
$o .= replace_macros($tpl,array(
|
||||||
'$baseurl' => $a->get_baseurl(),
|
'$baseurl' => $a->get_baseurl(),
|
||||||
'$defloc' => (($is_owner) ? $a->user['default-location'] : ''),
|
'$defloc' => (($is_owner) ? $a->user['default-location'] : ''),
|
||||||
|
@ -148,8 +150,7 @@ function profile_content(&$a, $update = 0) {
|
||||||
'$emtitle' => t('Example: bob@example.com, mary@example.com'),
|
'$emtitle' => t('Example: bob@example.com, mary@example.com'),
|
||||||
'$bang' => '',
|
'$bang' => '',
|
||||||
'$acl' => (($is_owner) ? populate_acl($a->user, $celeb) : ''),
|
'$acl' => (($is_owner) ? populate_acl($a->user, $celeb) : ''),
|
||||||
'$profile_uid' => $a->profile['profile_uid'],
|
'$profile_uid' => $a->profile['profile_uid']
|
||||||
'$jotplugins' => $jotplugins
|
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue