mirror of
https://github.com/friendica/friendica
synced 2025-04-19 06:30:10 +00:00
Move itemCount parameter from constructor to renderFull()
- Remove Pager->itemCount property and Pager->setItemCount() method - Update usage
This commit is contained in:
parent
14237a9599
commit
7c0b591043
12 changed files with 70 additions and 80 deletions
|
@ -781,7 +781,7 @@ class Contact extends BaseModule
|
|||
if (DBA::isResult($r)) {
|
||||
$total = $r[0]['total'];
|
||||
}
|
||||
$pager = new Pager($a->query_string, $total);
|
||||
$pager = new Pager($a->query_string);
|
||||
|
||||
$sql_extra3 = Widget::unavailableNetworks();
|
||||
|
||||
|
@ -822,7 +822,7 @@ class Contact extends BaseModule
|
|||
'contacts_batch_drop' => L10n::t('Delete'),
|
||||
],
|
||||
'$h_batch_actions' => L10n::t('Batch Actions'),
|
||||
'$paginate' => $pager->renderFull(),
|
||||
'$paginate' => $pager->renderFull($total),
|
||||
]);
|
||||
|
||||
return $o;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue