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()]]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user