From e57449ee35fcc0f8f440dcb5fa2a450193b9d323 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 7 Aug 2020 21:18:25 -0400 Subject: [PATCH] Reduce page size in contacts pages --- src/Module/Contact/Contacts.php | 2 +- src/Module/Profile/Common.php | 2 +- src/Module/Profile/Contacts.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Module/Contact/Contacts.php b/src/Module/Contact/Contacts.php index 31e81cb83d..355619c712 100644 --- a/src/Module/Contact/Contacts.php +++ b/src/Module/Contact/Contacts.php @@ -67,7 +67,7 @@ class Contacts extends BaseModule $total = Model\Contact\Relation::countAll($cid, $condition); } - $pager = new Pager(DI::l10n(), DI::args()->getQueryString()); + $pager = new Pager(DI::l10n(), DI::args()->getQueryString(), 30); $desc = ''; switch ($type) { diff --git a/src/Module/Profile/Common.php b/src/Module/Profile/Common.php index a9d00fce5f..ee08177525 100644 --- a/src/Module/Profile/Common.php +++ b/src/Module/Profile/Common.php @@ -78,7 +78,7 @@ class Common extends BaseProfile $total = Contact\Relation::countCommon($sourceId, $targetId, $condition); - $pager = new Pager(DI::l10n(), DI::args()->getQueryString()); + $pager = new Pager(DI::l10n(), DI::args()->getQueryString(), 30); $commonFollows = Contact\Relation::listCommon($sourceId, $targetId, $condition, $pager->getItemsPerPage(), $pager->getStart()); diff --git a/src/Module/Profile/Contacts.php b/src/Module/Profile/Contacts.php index 6981b43a42..2ec9ddaa03 100644 --- a/src/Module/Profile/Contacts.php +++ b/src/Module/Profile/Contacts.php @@ -81,7 +81,7 @@ class Contacts extends Module\BaseProfile $total = DBA::count('contact', $condition); - $pager = new Pager(DI::l10n(), DI::args()->getQueryString()); + $pager = new Pager(DI::l10n(), DI::args()->getQueryString(), 30); $params = ['order' => ['name' => false], 'limit' => [$pager->getStart(), $pager->getItemsPerPage()]];