mirror of
https://github.com/friendica/friendica
synced 2025-04-26 18:30:11 +00:00
Remove deprecated App::query_string - replace with DI::args()->getQueryString()
This commit is contained in:
parent
26af2feee2
commit
e6f61c2cc7
33 changed files with 63 additions and 66 deletions
|
@ -46,13 +46,11 @@ class Contact extends BaseAdminModule
|
|||
{
|
||||
parent::content($parameters);
|
||||
|
||||
$a = DI::app();
|
||||
|
||||
$condition = ['uid' => 0, 'blocked' => true];
|
||||
|
||||
$total = DBA::count('contact', $condition);
|
||||
|
||||
$pager = new Pager($a->query_string, 30);
|
||||
$pager = new Pager(DI::args()->getQueryString(), 30);
|
||||
|
||||
$contacts = Model\Contact::selectToArray([], $condition, ['limit' => [$pager->getStart(), $pager->getItemsPerPage()]]);
|
||||
|
||||
|
|
|
@ -179,7 +179,7 @@ class Users extends BaseAdminModule
|
|||
/* get pending */
|
||||
$pending = Register::getPending();
|
||||
|
||||
$pager = new Pager($a->query_string, 100);
|
||||
$pager = new Pager(DI::args()->getQueryString(), 100);
|
||||
|
||||
// @TODO Move below block to Model\User::getUsers($start, $count, $order = 'contact.name', $order_direction = '+')
|
||||
$valid_orders = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue