Make $kw configurable.

This commit is contained in:
Thomas Willingham 2013-09-20 02:38:59 +01:00
parent 9f237f7dba
commit 49cfca4b4c

View File

@ -70,7 +70,10 @@ function directory_content(&$a) {
if($url) {
// We might want to make the tagadelic count (&kw=) configurable or turn it off completely.
$query = $url . '?f=&kw=24' ;
$numtags = $a->config['system']['directorytags'];
$kw = ((intval($numtags)) ? $numtags : 24);
$query = $url . '?f=&kw=' . $kw;
if($search)
$query .= '&name=' . urlencode($search) . '&keywords=' . urlencode($search);
if(strpos($search,'@'))