aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewonline.php
diff options
context:
space:
mode:
authorDrae <paul@starstreak.net>2012-07-04 23:19:59 +0100
committerDrae <paul@starstreak.net>2012-07-18 14:30:20 +0100
commit922147f05a75d5a0e00b34f0102bc014583df984 (patch)
tree29f003d8e803ec8994ecf660d03c12514084040b /phpBB/viewonline.php
parentb176b86f111a05338ed3c74026bcf19d42ec0ee3 (diff)
downloadforums-922147f05a75d5a0e00b34f0102bc014583df984.tar
forums-922147f05a75d5a0e00b34f0102bc014583df984.tar.gz
forums-922147f05a75d5a0e00b34f0102bc014583df984.tar.bz2
forums-922147f05a75d5a0e00b34f0102bc014583df984.tar.xz
forums-922147f05a75d5a0e00b34f0102bc014583df984.zip
[ticket/10968] Render pagination within the template
Since phpBB 2 pagination has been rendered mostly within the source. This limits just what designers can do with pagination. The current form is also questionable in terms of "best practice". The aim is to move rendering completely to the template via the use of a block element. Enabling S_ template vars also allows for control over specific aspects of the pagination output such as next, previous, active and ellipsis. Related to this - merging the capabilities of the topic_generate_pagination with generate_pagination removes an element of duplication. PHPBB3-10968
Diffstat (limited to 'phpBB/viewonline.php')
-rw-r--r--phpBB/viewonline.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/viewonline.php b/phpBB/viewonline.php
index 08ca7f7a04..546152f647 100644
--- a/phpBB/viewonline.php
+++ b/phpBB/viewonline.php
@@ -342,7 +342,7 @@ while ($row = $db->sql_fetchrow($result))
$db->sql_freeresult($result);
unset($prev_id, $prev_ip);
-$pagination = generate_pagination(append_sid("{$phpbb_root_path}viewonline.$phpEx", "sg=$show_guests&amp;sk=$sort_key&amp;sd=$sort_dir"), $counter, $config['topics_per_page'], $start);
+generate_pagination(append_sid("{$phpbb_root_path}viewonline.$phpEx", "sg=$show_guests&amp;sk=$sort_key&amp;sd=$sort_dir"), $counter, $config['topics_per_page'], $start);
$order_legend = ($config['legend_sort_groupname']) ? 'group_name' : 'group_legend';
// Grab group details for legend display