aboutsummaryrefslogtreecommitdiffstats
path: root/mod/directory.php
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2013-09-20 02:38:59 +0100
committerThomas Willingham <founder@kakste.com>2013-09-20 02:38:59 +0100
commit49cfca4b4cc60f332024a048a80e61e1fb39eb0f (patch)
treedbb82bb04a151011876c57c89bed2e627e33630a /mod/directory.php
parent9f237f7dba8f41fc243225d556a47164ee155635 (diff)
downloadvolse-hubzilla-49cfca4b4cc60f332024a048a80e61e1fb39eb0f.tar.gz
volse-hubzilla-49cfca4b4cc60f332024a048a80e61e1fb39eb0f.tar.bz2
volse-hubzilla-49cfca4b4cc60f332024a048a80e61e1fb39eb0f.zip
Make $kw configurable.
Diffstat (limited to 'mod/directory.php')
-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,'@'))