aboutsummaryrefslogtreecommitdiffstats
path: root/mod/search.php
diff options
context:
space:
mode:
authormarijus <mario@localhost.localdomain>2013-11-22 14:17:47 +0100
committermarijus <mario@localhost.localdomain>2013-11-22 14:17:47 +0100
commit3a4c32475e33e1cad6610c8e4fa0e9cc18bbc31a (patch)
treec2c1b71a91c45eddc972b3c415e4a4d47961de4a /mod/search.php
parent353f5f049e5a42149cce2133f48b38529eeec678 (diff)
downloadvolse-hubzilla-3a4c32475e33e1cad6610c8e4fa0e9cc18bbc31a.tar.gz
volse-hubzilla-3a4c32475e33e1cad6610c8e4fa0e9cc18bbc31a.tar.bz2
volse-hubzilla-3a4c32475e33e1cad6610c8e4fa0e9cc18bbc31a.zip
search should respect max items to load as well
Diffstat (limited to 'mod/search.php')
-rw-r--r--mod/search.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/mod/search.php b/mod/search.php
index 539241268..bad071936 100644
--- a/mod/search.php
+++ b/mod/search.php
@@ -186,6 +186,8 @@ function search_content(&$a,$update = 0, $load = false) {
$pub_sql = public_permissions_sql(get_observer_hash());
if(($update) && ($load)) {
+ $itemspage = get_pconfig(local_user(),'system','itemspage');
+ $a->set_pager_itemspage(((intval($itemspage)) ? $itemspage : 20));
$pager_sql = sprintf(" LIMIT %d, %d ",intval($a->pager['start']), intval($a->pager['itemspage']));
if($load) {