aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorMichael Johnston <michaelgeorgejohnston@gmail.com>2013-09-03 23:58:46 -0400
committerMichael Johnston <michaelgeorgejohnston@gmail.com>2013-09-06 21:53:22 -0400
commitba980e2c1f3d673ab07e6c3ac1c3657294f95708 (patch)
treeddf22628ab69b094febe81d23734ebadf3a6ce62 /mod
parentd194ee091af0ee15c7f63def7e8c07ee29e38f39 (diff)
downloadvolse-hubzilla-ba980e2c1f3d673ab07e6c3ac1c3657294f95708.tar.gz
volse-hubzilla-ba980e2c1f3d673ab07e6c3ac1c3657294f95708.tar.bz2
volse-hubzilla-ba980e2c1f3d673ab07e6c3ac1c3657294f95708.zip
filter by category fixes
Diffstat (limited to 'mod')
-rw-r--r--mod/channel.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/channel.php b/mod/channel.php
index aa158d330..5d3855269 100644
--- a/mod/channel.php
+++ b/mod/channel.php
@@ -90,6 +90,8 @@ function channel_content(&$a, $update = 0, $load = false) {
require_once('include/permissions.php');
+ $category = ((x($_REQUEST,'cat')) ? $_REQUEST['cat'] : '');
+
$groups = array();
$o = '';
@@ -171,8 +173,9 @@ function channel_content(&$a, $update = 0, $load = false) {
}
else {
+
if(x($category)) {
- $sql_extra .= protect_sprintf(file_tag_file_query('item',$category,'category'));
+ $sql_extra .= protect_sprintf(term_query('item', $category, TERM_CATEGORY));
}
if($datequery) {