aboutsummaryrefslogtreecommitdiffstats
path: root/mod/directory.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-11-23 18:54:33 -0800
committerfriendica <info@friendica.com>2014-11-23 18:54:33 -0800
commit79e5c2456bfc78296d77d1a4caedd5a32b7d9d12 (patch)
tree76df115b3158605e74d63933f3e67212bd91acbf /mod/directory.php
parent5bb794cc2852f3a53526b15dcd610a002ce86563 (diff)
downloadvolse-hubzilla-79e5c2456bfc78296d77d1a4caedd5a32b7d9d12.tar.gz
volse-hubzilla-79e5c2456bfc78296d77d1a4caedd5a32b7d9d12.tar.bz2
volse-hubzilla-79e5c2456bfc78296d77d1a4caedd5a32b7d9d12.zip
add link to search forums in the directory
Diffstat (limited to 'mod/directory.php')
-rw-r--r--mod/directory.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/mod/directory.php b/mod/directory.php
index 921c8ece7..c06a14d9e 100644
--- a/mod/directory.php
+++ b/mod/directory.php
@@ -96,10 +96,18 @@ function directory_content(&$a) {
if(! is_null($pubforums))
$query .= '&pubforums=' . intval($pubforums);
+ if(! is_null($pubforums))
+ $query .= '&pubforums=' . intval($pubforums);
+
$sort_order = ((x($_REQUEST,'order')) ? $_REQUEST['order'] : '');
+ if($pubforums)
+ $sort_order = 'normal';
+
if($sort_order)
$query .= '&order=' . urlencode($sort_order);
+
+
if($a->pager['page'] != 1)
$query .= '&p=' . $a->pager['page'];