Reduce page size in contacts pages
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 8 Aug 2020 01:18:25 +0000 (21:18 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 8 Aug 2020 01:18:25 +0000 (21:18 -0400)
src/Module/Contact/Contacts.php
src/Module/Profile/Common.php
src/Module/Profile/Contacts.php

index 31e81cb..355619c 100644 (file)
@@ -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) {
index a9d00fc..ee08177 100644 (file)
@@ -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());
 
index 6981b43..2ec9dda 100644 (file)
@@ -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()]];