From da5a1be26d5d18987a0ac706d64e220d91c21e04 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 28 Dec 2012 19:56:01 -0800 Subject: fix channel page permissions for public viewing --- mod/channel.php | 3 +-- view/tpl/build_query.tpl | 2 +- 2 files changed, 2 insertions(+), 3 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 .= "\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', diff --git a/view/tpl/build_query.tpl b/view/tpl/build_query.tpl index 2af664d3c..b7b0ac86c 100644 --- a/view/tpl/build_query.tpl +++ b/view/tpl/build_query.tpl @@ -19,7 +19,7 @@ var bParam_search = "$search"; var bParam_order = "$order"; var bParam_file = "$file"; - var bParam_cats = "$category"; + var bParam_cats = "$cats"; var bParam_dend = "$dend"; var bParam_dbegin = "$dbegin"; -- cgit v1.2.3