diff options
author | friendica <info@friendica.com> | 2014-11-23 18:22:19 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-11-23 18:22:19 -0800 |
commit | 5bb794cc2852f3a53526b15dcd610a002ce86563 (patch) | |
tree | 9988b1d33132d566c529f00663c3abdc9be8f740 /mod/directory.php | |
parent | 746e4860faae897ef1a5a2bc6c4378454dac33ab (diff) | |
download | volse-hubzilla-5bb794cc2852f3a53526b15dcd610a002ce86563.tar.gz volse-hubzilla-5bb794cc2852f3a53526b15dcd610a002ce86563.tar.bz2 volse-hubzilla-5bb794cc2852f3a53526b15dcd610a002ce86563.zip |
allow directory searches to be filtered by (public forums) and/or (! public forums)
Diffstat (limited to 'mod/directory.php')
-rw-r--r-- | mod/directory.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/directory.php b/mod/directory.php index d4a4c383a..921c8ece7 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -31,8 +31,9 @@ function directory_content(&$a) { if(x($_REQUEST,'safe')) $safe_mode = (intval($_REQUEST['safe'])); - - + $pubforums = null; + if(array_key_exists('pubforums',$_REQUEST)) + $pubforums = intval($_REQUEST['pubforums']); $o = ''; nav_set_selected('directory'); @@ -92,6 +93,8 @@ function directory_content(&$a) { $query .= '&keywords=' . urlencode($keywords); if($advanced) $query .= '&query=' . urlencode($advanced); + if(! is_null($pubforums)) + $query .= '&pubforums=' . intval($pubforums); $sort_order = ((x($_REQUEST,'order')) ? $_REQUEST['order'] : ''); if($sort_order) |