aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/directory.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/directory.php b/mod/directory.php
index c4305dfde..c3c1a30d5 100644
--- a/mod/directory.php
+++ b/mod/directory.php
@@ -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,'@'))