From dfd8c4c24f91dc34335fc48381404a29b88e98c2 Mon Sep 17 00:00:00 2001 From: nupplaPhil Date: Mon, 16 Dec 2019 01:30:33 +0100 Subject: [PATCH] Remove deprecated App::query_string - replace with DI::args()->getQueryString() --- forumdirectory/forumdirectory.php | 3 ++- xmpp/xmpp.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/forumdirectory/forumdirectory.php b/forumdirectory/forumdirectory.php index f7c8b2446..16538d791 100644 --- a/forumdirectory/forumdirectory.php +++ b/forumdirectory/forumdirectory.php @@ -15,6 +15,7 @@ use Friendica\Core\Hook; use Friendica\Core\L10n; use Friendica\Core\Renderer; use Friendica\Database\DBA; +use Friendica\DI; use Friendica\Model\Profile; use Friendica\Util\Strings; @@ -107,7 +108,7 @@ function forumdirectory_content(App $a) $total = $cnt['total']; } - $pager = new Pager($a->query_string, 60); + $pager = new Pager(DI::args()->getQueryString(), 60); $order = " ORDER BY `name` ASC "; diff --git a/xmpp/xmpp.php b/xmpp/xmpp.php index 31edfdca5..dbcaf67d2 100644 --- a/xmpp/xmpp.php +++ b/xmpp/xmpp.php @@ -151,7 +151,7 @@ function xmpp_converse(App $a) return; } - if (in_array($a->query_string, ["admin/federation/"])) { + if (in_array(DI::args()->getQueryString(), ["admin/federation/"])) { return; }