diff options
author | Thomas Willingham <founder@kakste.com> | 2013-11-09 18:45:52 +0000 |
---|---|---|
committer | Thomas Willingham <founder@kakste.com> | 2013-11-09 18:45:52 +0000 |
commit | 8569fda732238fe8f1fd845e0b273cc325033df0 (patch) | |
tree | 7b9360529cad624f544339e83e9afce4dddbca48 | |
parent | 7b29400c6c8448718f156aff73754f669992ee69 (diff) | |
download | volse-hubzilla-8569fda732238fe8f1fd845e0b273cc325033df0.tar.gz volse-hubzilla-8569fda732238fe8f1fd845e0b273cc325033df0.tar.bz2 volse-hubzilla-8569fda732238fe8f1fd845e0b273cc325033df0.zip |
Clean up
-rw-r--r-- | include/dir_fns.php | 2 | ||||
-rw-r--r-- | mod/directory.php | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/include/dir_fns.php b/include/dir_fns.php index 319be25c4..cd812ddc7 100644 --- a/include/dir_fns.php +++ b/include/dir_fns.php @@ -23,7 +23,7 @@ function dir_sort_links() { function dir_safe_mode(&$a) { $observer = get_observer_hash(); -// if ($observer) + if ($observer) $safe_mode = get_xconfig($observer,'directory','safe_mode'); if($safe_mode == 0) $toggle = t('Enable Safe Search'); diff --git a/mod/directory.php b/mod/directory.php index 61a40f8d4..657ecd8f9 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -94,9 +94,8 @@ 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,'@')) |