diff options
author | Stefan Parviainen <saparvia@caterva.eu> | 2015-01-08 16:05:00 +0100 |
---|---|---|
committer | Stefan Parviainen <saparvia@caterva.eu> | 2015-01-08 16:05:00 +0100 |
commit | 833d51527b7cf852f519ea29c6bf20bc25a3d717 (patch) | |
tree | c3b7555ea1b8c27672a810a2ddedc22eb1189ef0 /mod/acl.php | |
parent | 7176eb88452b3c74652de09e44de41943051391c (diff) | |
download | volse-hubzilla-833d51527b7cf852f519ea29c6bf20bc25a3d717.tar.gz volse-hubzilla-833d51527b7cf852f519ea29c6bf20bc25a3d717.tar.bz2 volse-hubzilla-833d51527b7cf852f519ea29c6bf20bc25a3d717.zip |
Honor requested count in navbar search
Diffstat (limited to 'mod/acl.php')
-rw-r--r-- | mod/acl.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/acl.php b/mod/acl.php index f575db55b..d406942c3 100644 --- a/mod/acl.php +++ b/mod/acl.php @@ -293,9 +293,10 @@ function navbar_complete(&$a) { $url = $directory['url'] . '/dirsearch'; } + $count = (x($_REQUEST,'count')?$_REQUEST['count']:100); if($url) { $query = $url . '?f=' ; - $query .= '&name=' . urlencode($search) . '&limit=50' . (($address) ? '&address=' . urlencode($search) : ''); + $query .= '&name=' . urlencode($search) . "&limit=$count" . (($address) ? '&address=' . urlencode($search) : ''); $x = z_fetch_url($query); if($x['success']) { |