]> git.mxchange.org Git - friendica.git/blobdiff - mod/notifications.php
Move Cache::set() to DI::cache()->set()
[friendica.git] / mod / notifications.php
index 4db4a8a83edc3c6a16fc0eb8d656e5454d532db6..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'):