]> git.mxchange.org Git - friendica.git/blobdiff - mod/notifications.php
Move Cache::set() to DI::cache()->set()
[friendica.git] / mod / notifications.php
index 7e1d2cff9e9f1fdbbad4a58f60c00896e254063b..73730b50a52957e8ebaac07d7ce13c5d0753b3a0 100644 (file)
@@ -31,9 +31,7 @@ function notifications_post(App $a)
        }
 
        if ($request_id) {
-               /** @var Introduction $Intro */
-               $Intro = \Friendica\BaseObject::getClass(Introduction::class);
-               $Intro->fetch(['id' => $request_id, 'uid' => local_user()]);
+               $Intro = DI::intro()->fetch(['id' => $request_id, 'uid' => local_user()]);
 
                switch ($_POST['submit']) {
                        case L10n::t('Discard'):
@@ -116,7 +114,7 @@ function notifications_content(App $a)
        }
 
        // Set the pager
-       $pager = new Pager($a->query_string, $perpage);
+       $pager = new Pager(DI::args()->getQueryString(), $perpage);
 
        // Add additional informations (needed for json output)
        $notifs['items_page'] = $pager->getItemsPerPage();