diff options
author | Thomas Willingham <founder@kakste.com> | 2013-11-09 18:43:40 +0000 |
---|---|---|
committer | Thomas Willingham <founder@kakste.com> | 2013-11-09 18:43:40 +0000 |
commit | 7b29400c6c8448718f156aff73754f669992ee69 (patch) | |
tree | 47e3f3514e7e4d0960bc79a88a9391f6c84de44c /mod/directory.php | |
parent | 6f2163a08ec6b48a113e768c8fc0a94f8dd0bde1 (diff) | |
download | volse-hubzilla-7b29400c6c8448718f156aff73754f669992ee69.tar.gz volse-hubzilla-7b29400c6c8448718f156aff73754f669992ee69.tar.bz2 volse-hubzilla-7b29400c6c8448718f156aff73754f669992ee69.zip |
Bring safe search to the UI
Diffstat (limited to 'mod/directory.php')
-rw-r--r-- | mod/directory.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/directory.php b/mod/directory.php index 18085e83e..61a40f8d4 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -14,8 +14,9 @@ function directory_aside(&$a) { require_once('include/contact_widgets.php'); $a->set_widget('find_people',findpeople_widget()); } + $a->set_widget('safe_search',dir_safe_mode()); $a->set_widget('dir_sort_order',dir_sort_links()); - + } @@ -93,7 +94,9 @@ function directory_content(&$a) { $numtags = get_config('system','directorytags'); $kw = ((intval($numtags)) ? $numtags : 24); +// $query = $url . '?f=&kw=' . $kw . (($safe_mode != 1) ? '&safe=' . $safe_mode : ''); $query = $url . '?f=&kw=' . $kw . (($safe_mode != 1) ? '&safe=' . $safe_mode : ''); +logger('query: ' . $query); if($search) $query .= '&name=' . urlencode($search) . '&keywords=' . urlencode($search); if(strpos($search,'@')) |