diff options
author | friendica <info@friendica.com> | 2014-06-03 18:19:27 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-06-03 18:19:27 -0700 |
commit | 97a4479513130658fffdcc1f8ef0d349f08520bc (patch) | |
tree | 4fc3255fe710a4206c719f763e605095ba723bbd /mod | |
parent | 04cd60a0e3f2999bcd0c990e7a3020d151231cb2 (diff) | |
download | volse-hubzilla-97a4479513130658fffdcc1f8ef0d349f08520bc.tar.gz volse-hubzilla-97a4479513130658fffdcc1f8ef0d349f08520bc.tar.bz2 volse-hubzilla-97a4479513130658fffdcc1f8ef0d349f08520bc.zip |
don't provide a second (actually third counting the navbar) search box on the search page if you've got saved searches turned on. This should solve some problems with duplicate html id's (and save wasn't working anyway). If you don't have saved search ability (which will provide a saved search widget in the sidebar), provide a simple search box in the main content region but without save ability.
Diffstat (limited to 'mod')
-rw-r--r-- | mod/search.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/search.php b/mod/search.php index 16837a107..2c2e8c86a 100644 --- a/mod/search.php +++ b/mod/search.php @@ -39,7 +39,8 @@ function search_content(&$a,$update = 0, $load = false) { $search = ((x($_GET,'tag')) ? trim(rawurldecode($_GET['tag'])) : ''); } - $o .= search($search,'search-box','/search',((local_user()) ? true : false)); + if((! local_user()) || (! feature_enabled(local_user(),'savedsearch'))) + $o .= search($search,'search-box','/search',((local_user()) ? true : false)); if(strpos($search,'#') === 0) { $tag = true; |