fix channel page permissions for public viewing

This commit is contained in:
friendica 2012-12-28 19:56:01 -08:00
parent f048c1d05a
commit da5a1be26d
2 changed files with 2 additions and 3 deletions

View File

@ -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',

View File

@ -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";