]> git.mxchange.org Git - friendica.git/blobdiff - mod/notifications.php
Merge pull request #8135 from annando/brief
[friendica.git] / mod / notifications.php
index 4db4a8a83edc3c6a16fc0eb8d656e5454d532db6..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;
                }