mirror of
https://github.com/friendica/friendica
synced 2024-11-18 23:03:40 +00:00
Reduce page size in contacts pages
This commit is contained in:
parent
e64dcc5b5b
commit
e57449ee35
3 changed files with 3 additions and 3 deletions
|
@ -67,7 +67,7 @@ class Contacts extends BaseModule
|
||||||
$total = Model\Contact\Relation::countAll($cid, $condition);
|
$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 = '';
|
$desc = '';
|
||||||
|
|
||||||
switch ($type) {
|
switch ($type) {
|
||||||
|
|
|
@ -78,7 +78,7 @@ class Common extends BaseProfile
|
||||||
|
|
||||||
$total = Contact\Relation::countCommon($sourceId, $targetId, $condition);
|
$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());
|
$commonFollows = Contact\Relation::listCommon($sourceId, $targetId, $condition, $pager->getItemsPerPage(), $pager->getStart());
|
||||||
|
|
||||||
|
|
|
@ -81,7 +81,7 @@ class Contacts extends Module\BaseProfile
|
||||||
|
|
||||||
$total = DBA::count('contact', $condition);
|
$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()]];
|
$params = ['order' => ['name' => false], 'limit' => [$pager->getStart(), $pager->getItemsPerPage()]];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue