Remove deprecated App::query_string - replace with DI::args()->getQueryString()
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user