From: nupplaPhil Date: Mon, 16 Dec 2019 00:30:33 +0000 (+0100) Subject: Remove deprecated App::query_string - replace with DI::args()->getQueryString() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dfd8c4c24f91dc34335fc48381404a29b88e98c2;p=friendica-addons.git Remove deprecated App::query_string - replace with DI::args()->getQueryString() --- diff --git a/forumdirectory/forumdirectory.php b/forumdirectory/forumdirectory.php index f7c8b244..16538d79 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 31edfdca..dbcaf67d 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; }