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/directory.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/directory.php')
-rw-r--r-- | mod/directory.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/directory.php b/mod/directory.php index 4ab118b17..dca96694e 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -144,11 +144,14 @@ function directory_content(&$a) { } if($url) { - // We might want to make the tagadelic count (&kw=) configurable or turn it off completely. $numtags = get_config('system','directorytags'); - $kw = ((intval($numtags)) ? $numtags : 50); + $kw = ((intval($numtags) > 0) ? intval($numtags) : 50); + + if(get_config('system','disable_directory_keywords')) + $kw = 0; + $query = $url . '?f=&kw=' . $kw . (($safe_mode != 1) ? '&safe=' . $safe_mode : ''); if($token) |