]> git.mxchange.org Git - friendica.git/blobdiff - mod/notifications.php
Merge pull request #8135 from annando/brief
[friendica.git] / mod / notifications.php
index 7e1d2cff9e9f1fdbbad4a58f60c00896e254063b..e306f0c8a64d2cf86a41d6c719c6112fa6d560d8 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /**
  * @file mod/notifications.php
- * @brief The notifications module
+ * The notifications module
  */
 
 use Friendica\App;
@@ -31,16 +31,14 @@ 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()->selectFirst(['id' => $request_id, 'uid' => local_user()]);
 
                switch ($_POST['submit']) {
                        case L10n::t('Discard'):
-                               $Intro->discard();
+                               $intro->discard();
                                break;
                        case L10n::t('Ignore'):
-                               $Intro->ignore();
+                               $intro->ignore();
                                break;
                }
 
@@ -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();