]> git.mxchange.org Git - friendica.git/commitdiff
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 31e81cb83d6e402813bc714d156217f8ebf21abf..355619c712d2daf4b874229f05552becb1d82d26 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 a9d00fce5f50a15b1be288fa13b70652d45768b1..ee08177525b74d0cf45c6e3cbb96e6bf28d2b235 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 6981b43a4205d4d1241cabbbbfb289bea925d222..2ec9ddaa03c066daf4da1e44c5c97b50d0d1cd26 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()]];