aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-09-19 19:54:08 -0700
committerfriendica <info@friendica.com>2013-09-19 19:54:08 -0700
commit82bd1420cc264a985c1f201826b6bface70dec12 (patch)
tree02db64f2738fd6ee9fe891012908950e5c5bf192
parent54abed8457c504e69e3d139238d2ff09b0ec6cc8 (diff)
parent30f85a19b1bee0ffaf2505db8d48f647dfee9ad1 (diff)
downloadvolse-hubzilla-82bd1420cc264a985c1f201826b6bface70dec12.tar.gz
volse-hubzilla-82bd1420cc264a985c1f201826b6bface70dec12.tar.bz2
volse-hubzilla-82bd1420cc264a985c1f201826b6bface70dec12.zip
Merge https://github.com/friendica/red into zpull
-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..cc4e7e81f 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 = get_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,'@'))