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
|
@ -134,7 +134,7 @@ function message_content(App $a)
|
|||
if (!empty($_REQUEST['confirm'])) {
|
||||
// <form> can't take arguments in its "action" parameter
|
||||
// so add any arguments as hidden inputs
|
||||
$query = explode_querystring($a->query_string);
|
||||
$query = explode_querystring(DI::args()->getQueryString());
|
||||
$inputs = [];
|
||||
foreach ($query['args'] as $arg) {
|
||||
if (strpos($arg, 'confirm=') === false) {
|
||||
|
@ -265,7 +265,7 @@ function message_content(App $a)
|
|||
}
|
||||
|
||||
|
||||
$_SESSION['return_path'] = $a->query_string;
|
||||
$_SESSION['return_path'] = DI::args()->getQueryString();
|
||||
|
||||
if ($a->argc == 1) {
|
||||
|
||||
|
@ -282,7 +282,7 @@ function message_content(App $a)
|
|||
$total = $r[0]['total'];
|
||||
}
|
||||
|
||||
$pager = new Pager($a->query_string);
|
||||
$pager = new Pager(DI::args()->getQueryString());
|
||||
|
||||
$r = get_messages(local_user(), $pager->getStart(), $pager->getItemsPerPage());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue