mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 04:05:16 +02:00
ensure that jot_plugins inherit '$visitor' correctly
This commit is contained in:
parent
d322bb4613
commit
4e63b0acb9
2 changed files with 11 additions and 9 deletions
|
@ -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);
|
||||
|
||||
$jotplugins = "";
|
||||
call_hooks('jot_tool', $jotplugins);
|
||||
$jotplugins = "";
|
||||
call_hooks('jot_tool', $jotplugins);
|
||||
|
||||
$tpl = replace_macros($tpl,array('$jotplugins' => $jotplugins));
|
||||
|
||||
$o .= replace_macros($tpl,array(
|
||||
'$return_path' => $a->cmd,
|
||||
|
@ -92,8 +94,7 @@ function network_content(&$a, $update = 0) {
|
|||
'$lockstate' => $lockstate,
|
||||
'$acl' => populate_acl((($group) ? $group_acl : $a->user), $celeb),
|
||||
'$bang' => (($group) ? '!' : ''),
|
||||
'$profile_uid' => $_SESSION['uid'],
|
||||
'$jotplugins' => $jotplugins
|
||||
'$profile_uid' => $_SESSION['uid']
|
||||
));
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue