aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mod/channel.php3
-rw-r--r--view/tpl/build_query.tpl2
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 .= "<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',
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";