mirror of
https://github.com/friendica/friendica
synced 2025-04-27 05:10:10 +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
|
@ -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()]];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue