$itemspage_network = $a->force_max_items;
}
- $pager = new Pager($a->query_string, null, $itemspage_network);
+ $pager = new Pager($a->query_string, $itemspage_network);
$r = community_getitems($pager->getStart(), $pager->getItemsPerPage(), $content, $accounttype);
$condition = ['uid' => local_user(), 'post-type' => Item::PT_PERSONAL_NOTE, 'gravity' => GRAVITY_PARENT,
'wall' => false, 'contact-id'=> $a->contact['id']];
- $pager = new Pager($a->query_string, null, 40);
+ $pager = new Pager($a->query_string, 40);
$params = ['order' => ['created' => true],
'limit' => [$pager->getStart(), $pager->getItemsPerPage()]];
}
// Set the pager
- $pager = new Pager($a->query_string, null, $perpage);
+ $pager = new Pager($a->query_string, $perpage);
// Add additional informations (needed for json output)
$notifs['items_page'] = $pager->getItemsPerPage();
$itemspage_network = $a->force_max_items;
}
- $pager = new Pager($a->query_string, null, $itemspage_network);
+ $pager = new Pager($a->query_string, $itemspage_network);
$pager_sql = sprintf(" LIMIT %d, %d ", $pager->getStart(), $pager->getItemsPerPage());