X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=mod%2Fnotifications.php;h=81084c1bc3f180a5c71297d2cdcdf01e6efcc65a;hb=f2ca3e5be44192c486e8e3af2a993e065ad40a7d;hp=d5cfbf276da2a02245ce24077b1cf03cf1e3521a;hpb=ff203c277dfd8619ccfb63edebaf54274e27bf2d;p=friendica.git diff --git a/mod/notifications.php b/mod/notifications.php index d5cfbf276d..81084c1bc3 100644 --- a/mod/notifications.php +++ b/mod/notifications.php @@ -7,6 +7,7 @@ use Friendica\App; use Friendica\Content\ContactSelector; use Friendica\Content\Nav; +use Friendica\Content\Pager; use Friendica\Core\L10n; use Friendica\Core\NotificationsManager; use Friendica\Core\Protocol; @@ -120,11 +121,11 @@ function notifications_content(App $a) } // Set the pager - $a->setPagerItemsPage($perpage); + $pager = new Pager($a->query_string, $perpage); // Add additional informations (needed for json output) - $notifs['items_page'] = $a->pager['itemspage']; - $notifs['page'] = $a->pager['page']; + $notifs['items_page'] = $pager->getItemsPerPage(); + $notifs['page'] = $pager->getPage(); // Json output if (intval($json) === 1) { @@ -315,7 +316,7 @@ function notifications_content(App $a) '$notif_content' => $notif_content, '$notif_nocontent' => $notif_nocontent, '$notif_show_lnk' => $notif_show_lnk, - '$notif_paginate' => alt_pager($a, count($notif_content)) + '$notif_paginate' => $pager->renderMinimal(count($notif_content)) ]); return $o;