mirror of
https://github.com/friendica/friendica
synced 2025-04-25 07:10:11 +00:00
Add Model\Contact::select method
This commit is contained in:
parent
9f4fb4906a
commit
71546705f8
2 changed files with 15 additions and 3 deletions
|
@ -52,9 +52,7 @@ class Contact extends BaseAdminModule
|
|||
|
||||
$pager = new Pager($a->query_string, 30);
|
||||
|
||||
$statement = DBA::select('contact', [], $condition, ['limit' => [$pager->getStart(), $pager->getItemsPerPage()]]);
|
||||
|
||||
$contacts = DBA::toArray($statement);
|
||||
$contacts = Model\Contact::select([], $condition, ['limit' => [$pager->getStart(), $pager->getItemsPerPage()]]);
|
||||
|
||||
$t = Renderer::getMarkupTemplate('admin/blocklist/contact.tpl');
|
||||
$o = Renderer::replaceMacros($t, [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue