aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-09-07 02:04:56 -0700
committerfriendica <info@friendica.com>2013-09-07 02:04:56 -0700
commit320a8a5e27f38ac62417a1325db14140d8c5b8b3 (patch)
treee2fc876ddd52c8cd45780c82c7d670e8b041e37a /mod
parent9ba6fd7d2872f5c64a9a71922f5791ed2f237ccb (diff)
parent04a4e4962d03d9ca4cc8503bb05ee94b0acc1a5f (diff)
downloadvolse-hubzilla-320a8a5e27f38ac62417a1325db14140d8c5b8b3.tar.gz
volse-hubzilla-320a8a5e27f38ac62417a1325db14140d8c5b8b3.tar.bz2
volse-hubzilla-320a8a5e27f38ac62417a1325db14140d8c5b8b3.zip
Merge https://github.com/friendica/red into zpull
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) {