control the generation or acceptance of directory keywords

This commit is contained in:
redmatrix
2016-01-26 19:04:32 -08:00
parent 9b08051703
commit 202817740a
3 changed files with 12 additions and 3 deletions

View File

@@ -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