aboutsummaryrefslogtreecommitdiffstats
path: root/mod/network.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-02-06 01:08:12 -0800
committerFriendika <info@friendika.com>2011-02-06 01:08:12 -0800
commit4e63b0acb94b5db67dd1b054d9484bff70107bb2 (patch)
treef774173438957fa0706818a7b07ca3990bfcb72d /mod/network.php
parentd322bb461326adac29e4b3a16d6638de74da2348 (diff)
downloadvolse-hubzilla-4e63b0acb94b5db67dd1b054d9484bff70107bb2.tar.gz
volse-hubzilla-4e63b0acb94b5db67dd1b054d9484bff70107bb2.tar.bz2
volse-hubzilla-4e63b0acb94b5db67dd1b054d9484bff70107bb2.zip
ensure that jot_plugins inherit '$visitor' correctly
Diffstat (limited to 'mod/network.php')
-rw-r--r--mod/network.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/mod/network.php b/mod/network.php
index 2ec06fe61..b0196f92a 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -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']
));