diff options
| author | Nils Adermann <naderman@naderman.de> | 2012-07-19 06:26:30 -0700 |
|---|---|---|
| committer | Nils Adermann <naderman@naderman.de> | 2012-07-19 06:26:30 -0700 |
| commit | b773da2c3e3cfbe7c7643fd05bfc6fd0b2e3a399 (patch) | |
| tree | c4c4933cce8b90665beed1848e8460425a67c9b7 /phpBB/includes/functions_display.php | |
| parent | b176b86f111a05338ed3c74026bcf19d42ec0ee3 (diff) | |
| parent | 584d49459d22ebf47239fc97ad8358a5404dacf4 (diff) | |
| download | forums-b773da2c3e3cfbe7c7643fd05bfc6fd0b2e3a399.tar forums-b773da2c3e3cfbe7c7643fd05bfc6fd0b2e3a399.tar.gz forums-b773da2c3e3cfbe7c7643fd05bfc6fd0b2e3a399.tar.bz2 forums-b773da2c3e3cfbe7c7643fd05bfc6fd0b2e3a399.tar.xz forums-b773da2c3e3cfbe7c7643fd05bfc6fd0b2e3a399.zip | |
Merge pull request #877 from Drae/feature/pagination-as-list
[feature/pagination-as-list] Render pagination within the template
Diffstat (limited to 'phpBB/includes/functions_display.php')
| -rw-r--r-- | phpBB/includes/functions_display.php | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php index 545f75ad67..00efd281c0 100644 --- a/phpBB/includes/functions_display.php +++ b/phpBB/includes/functions_display.php @@ -640,48 +640,6 @@ function get_forum_parents(&$forum_data) } /** -* Generate topic pagination -*/ -function topic_generate_pagination($replies, $url) -{ - global $config, $user; - - // Make sure $per_page is a valid value - $per_page = ($config['posts_per_page'] <= 0) ? 1 : $config['posts_per_page']; - - if (($replies + 1) > $per_page) - { - $total_pages = ceil(($replies + 1) / $per_page); - $pagination = ''; - - $times = 1; - for ($j = 0; $j < $replies + 1; $j += $per_page) - { - $pagination .= '<a href="' . $url . ($j == 0 ? '' : '&start=' . $j) . '">' . $times . '</a>'; - if ($times == 1 && $total_pages > 5) - { - $pagination .= '<span class="page-dots"> ... </span>'; - - // Display the last three pages - $times = $total_pages - 3; - $j += ($total_pages - 4) * $per_page; - } - else if ($times < $total_pages) - { - $pagination .= '<span class="page-sep">' . $user->lang['COMMA_SEPARATOR'] . '</span>'; - } - $times++; - } - } - else - { - $pagination = ''; - } - - return $pagination; -} - -/** * Obtain list of moderators of each forum */ function get_moderators(&$forum_moderators, $forum_id = false) |
