Remove deprecated App::query_string - replace with DI::args()->getQueryString()
This commit is contained in:
@@ -8,6 +8,7 @@ use Friendica\Content\Nav;
|
||||
use Friendica\Content\Pager;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\Item;
|
||||
use Friendica\Model\Profile;
|
||||
|
||||
@@ -53,7 +54,7 @@ function notes_content(App $a, $update = false)
|
||||
$condition = ['uid' => local_user(), 'post-type' => Item::PT_PERSONAL_NOTE, 'gravity' => GRAVITY_PARENT,
|
||||
'contact-id'=> $a->contact['id']];
|
||||
|
||||
$pager = new Pager($a->query_string, 40);
|
||||
$pager = new Pager(DI::args()->getQueryString(), 40);
|
||||
|
||||
$params = ['order' => ['created' => true],
|
||||
'limit' => [$pager->getStart(), $pager->getItemsPerPage()]];
|
||||
|
||||
Reference in New Issue
Block a user