diff options
author | redmatrix <git@macgirvin.com> | 2016-01-26 19:04:32 -0800 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-01-26 19:04:32 -0800 |
commit | 202817740ab13f91ab9bd90de43116d1778cb751 (patch) | |
tree | 2e36e2d59d1195cd09e4e99d21641558f4e499f6 /mod/dirsearch.php | |
parent | 9b08051703ff6695ba989f1cb968200ca59daeb1 (diff) | |
download | volse-hubzilla-202817740ab13f91ab9bd90de43116d1778cb751.tar.gz volse-hubzilla-202817740ab13f91ab9bd90de43116d1778cb751.tar.bz2 volse-hubzilla-202817740ab13f91ab9bd90de43116d1778cb751.zip |
control the generation or acceptance of directory keywords
Diffstat (limited to 'mod/dirsearch.php')
-rw-r--r-- | mod/dirsearch.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mod/dirsearch.php b/mod/dirsearch.php index 388e5f3ac..bc2fa108f 100644 --- a/mod/dirsearch.php +++ b/mod/dirsearch.php @@ -75,6 +75,8 @@ function dirsearch_content(&$a) { $kw = ((x($_REQUEST,'kw')) ? intval($_REQUEST['kw']) : 0 ); $forums = ((array_key_exists('pubforums',$_REQUEST)) ? intval($_REQUEST['pubforums']) : 0); + if(get_config('system','disable_directory_keywords')) + $kw = 0; // by default use a safe search |