aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_notifications.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-12-12 15:13:57 +0100
committerJoas Schilling <nickvergessen@gmx.de>2013-12-18 18:35:59 +0100
commita5b55e5ab4c063914228a36d32d541ddd0f67c36 (patch)
tree34bb417905ca2ef34602307cd43c59bc3044f7dd /phpBB/includes/ucp/ucp_notifications.php
parentdfe0526979e40f982c29b6fb371c0ec151df511a (diff)
downloadforums-a5b55e5ab4c063914228a36d32d541ddd0f67c36.tar
forums-a5b55e5ab4c063914228a36d32d541ddd0f67c36.tar.gz
forums-a5b55e5ab4c063914228a36d32d541ddd0f67c36.tar.bz2
forums-a5b55e5ab4c063914228a36d32d541ddd0f67c36.tar.xz
forums-a5b55e5ab4c063914228a36d32d541ddd0f67c36.zip
[ticket/11849] Update UCP notifications and pm folder
PHPBB3-11849
Diffstat (limited to 'phpBB/includes/ucp/ucp_notifications.php')
-rw-r--r--phpBB/includes/ucp/ucp_notifications.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/phpBB/includes/ucp/ucp_notifications.php b/phpBB/includes/ucp/ucp_notifications.php
index 63dbe79666..79055095bc 100644
--- a/phpBB/includes/ucp/ucp_notifications.php
+++ b/phpBB/includes/ucp/ucp_notifications.php
@@ -31,6 +31,7 @@ class ucp_notifications
$form_time = ($form_time <= 0 || $form_time > time()) ? time() : $form_time;
$phpbb_notifications = $phpbb_container->get('notification_manager');
+ $pagination = $phpbb_container->get('pagination');
switch ($mode)
{
@@ -137,10 +138,11 @@ class ucp_notifications
}
$base_url = append_sid("{$phpbb_root_path}ucp.$phpEx", "i=ucp_notifications&amp;mode=notification_list");
- phpbb_generate_template_pagination($template, $base_url, 'pagination', 'start', $notifications['total_count'], $config['topics_per_page'], $start);
+ $start = $pagination->validate_start($start, $config['topics_per_page'], $notifications['total_count']);
+ $pagination->generate_template_pagination($base_url, 'pagination', 'start', $notifications['total_count'], $config['topics_per_page'], $start);
$template->assign_vars(array(
- 'PAGE_NUMBER' => phpbb_on_page($template, $user, $base_url, $notifications['total_count'], $config['topics_per_page'], $start),
+ 'PAGE_NUMBER' => $pagination->on_page($base_url, $notifications['total_count'], $config['topics_per_page'], $start),
'TOTAL_COUNT' => $notifications['total_count'],
'U_MARK_ALL' => $base_url . '&amp;mark=all&amp;token=' . generate_link_hash('mark_all_notifications_read'),
));