X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fnotifications.php;h=e306f0c8a64d2cf86a41d6c719c6112fa6d560d8;hb=af88c2daa34e39cb6430abf64d0648665bfeb9cd;hp=7e1d2cff9e9f1fdbbad4a58f60c00896e254063b;hpb=8e6973b774efeff5dd381e8984c22171c6a14c31;p=friendica.git diff --git a/mod/notifications.php b/mod/notifications.php index 7e1d2cff9e..e306f0c8a6 100644 --- a/mod/notifications.php +++ b/mod/notifications.php @@ -1,7 +1,7 @@ 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();