aboutsummaryrefslogtreecommitdiffstats
path: root/mod/channel.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-12-28 19:56:01 -0800
committerfriendica <info@friendica.com>2012-12-28 19:56:01 -0800
commitda5a1be26d5d18987a0ac706d64e220d91c21e04 (patch)
treee8be9d5831d91d80e88a97027b2ba60b8919b12e /mod/channel.php
parentf048c1d05a93d0592263afd7f24dbee14e14ced5 (diff)
downloadvolse-hubzilla-da5a1be26d5d18987a0ac706d64e220d91c21e04.tar.gz
volse-hubzilla-da5a1be26d5d18987a0ac706d64e220d91c21e04.tar.bz2
volse-hubzilla-da5a1be26d5d18987a0ac706d64e220d91c21e04.zip
fix channel page permissions for public viewing
Diffstat (limited to 'mod/channel.php')
-rw-r--r--mod/channel.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/mod/channel.php b/mod/channel.php
index 75dc0d83c..8dab365d8 100644
--- a/mod/channel.php
+++ b/mod/channel.php
@@ -219,11 +219,10 @@ function channel_content(&$a, $update = 0, $load = false) {
$o .= "<script> var profile_uid = " . $a->profile['profile_uid']
. "; var netargs = '?f='; var profile_page = " . $a->pager['page'] . "; </script>\r\n";
-
$a->page['htmlhead'] .= replace_macros(get_markup_template("build_query.tpl"),array(
'$baseurl' => z_root(),
'$pgtype' => 'channel',
- '$uid' => ((local_user()) ? local_user() : '0'),
+ '$uid' => (($a->profile['profile_uid']) ? $a->profile['profile_uid'] : '0'),
'$gid' => '0',
'$cid' => '0',
'$cmin' => '0',