aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewonline.php
diff options
context:
space:
mode:
authorDrae <paul@starstreak.net>2012-07-08 21:07:28 +0100
committerDrae <paul@starstreak.net>2012-07-18 14:32:18 +0100
commit27d8aef528460e87efc90bc4fffc82c0d1fa87d9 (patch)
tree91628c158d80d76bac305a9933ec8b74b5336b96 /phpBB/viewonline.php
parentcf4d6e926dd83d61073ac355cdaf7778a18dcbf8 (diff)
downloadforums-27d8aef528460e87efc90bc4fffc82c0d1fa87d9.tar
forums-27d8aef528460e87efc90bc4fffc82c0d1fa87d9.tar.gz
forums-27d8aef528460e87efc90bc4fffc82c0d1fa87d9.tar.bz2
forums-27d8aef528460e87efc90bc4fffc82c0d1fa87d9.tar.xz
forums-27d8aef528460e87efc90bc4fffc82c0d1fa87d9.zip
[feature/pagination-as-list] Updates for nils comments
Re-remove deprecated functions, change on_page to phpbb_on_page, add null returns, remove globals and pass as params. PHPBB3-10968
Diffstat (limited to 'phpBB/viewonline.php')
-rw-r--r--phpBB/viewonline.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/viewonline.php b/phpBB/viewonline.php
index 2db7fa6edd..85aa94e594 100644
--- a/phpBB/viewonline.php
+++ b/phpBB/viewonline.php
@@ -385,7 +385,7 @@ $db->sql_freeresult($result);
meta_refresh(60, append_sid("{$phpbb_root_path}viewonline.$phpEx", "sg=$show_guests&amp;sk=$sort_key&amp;sd=$sort_dir&amp;start=$start"));
$base_url = append_sid("{$phpbb_root_path}viewonline.$phpEx", "sg=$show_guests&amp;sk=$sort_key&amp;sd=$sort_dir");
-phpbb_generate_template_pagination($base_url, 'pagination', $counter, $config['topics_per_page'], $start);
+phpbb_generate_template_pagination($template, $base_url, 'pagination', $counter, $config['topics_per_page'], $start);
// Send data to template
$template->assign_vars(array(
@@ -393,7 +393,7 @@ $template->assign_vars(array(
'TOTAL_GUEST_USERS_ONLINE' => $user->lang('GUEST_USERS_ONLINE', (int) $guest_counter),
'LEGEND' => $legend,
'PAGINATION' => $pagination,
- 'PAGE_NUMBER' => on_page($base_url, $counter, $config['topics_per_page'], $start),
+ 'PAGE_NUMBER' => phpbb_on_page($template, $user, $base_url, $counter, $config['topics_per_page'], $start),
'U_SORT_USERNAME' => append_sid("{$phpbb_root_path}viewonline.$phpEx", 'sk=a&amp;sd=' . (($sort_key == 'a' && $sort_dir == 'a') ? 'd' : 'a') . '&amp;sg=' . ((int) $show_guests)),
'U_SORT_UPDATED' => append_sid("{$phpbb_root_path}viewonline.$phpEx", 'sk=b&amp;sd=' . (($sort_key == 'b' && $sort_dir == 'a') ? 'd' : 'a') . '&amp;sg=' . ((int) $show_guests)),