Merge pull request #8986 from MrPetovan/task/8918-move-mod-common

Reduce page size in contacts pages
This commit is contained in:
Michael Vogel 2020-08-11 13:45:02 +02:00 committed by GitHub
commit dfa177e940
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View 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) {

View 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());

View 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()]];