]> git.mxchange.org Git - friendica-addons.git/commitdiff
Remove deprecated App::query_string - replace with DI::args()->getQueryString()
authornupplaPhil <admin@philipp.info>
Mon, 16 Dec 2019 00:30:33 +0000 (01:30 +0100)
committernupplaPhil <admin@philipp.info>
Fri, 27 Dec 2019 20:55:19 +0000 (21:55 +0100)
forumdirectory/forumdirectory.php
xmpp/xmpp.php

index f7c8b2446e80bb152dd77a290136f077e3112789..16538d7919eeeb7198eeb238ea8a214f3e6fdca7 100644 (file)
@@ -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 ";
 
index 31edfdca532623798b20ce921963f48193116abf..dbcaf67d204af1bc0e5c2bd4318bd9590e9a40dc 100644 (file)
@@ -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;
        }