aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_display.php
diff options
context:
space:
mode:
authorChris Smith <toonarmy@phpbb.com>2010-03-18 20:27:18 +0000
committerChris Smith <toonarmy@phpbb.com>2010-03-18 20:28:59 +0000
commit492063cec63fe3665406a74e74265c1a7dd5c295 (patch)
treeb5bfd0a7ace77a95cdb4c555746dfc456559aa3b /phpBB/includes/functions_display.php
parenta3a8fb989cd01d9b4156041870069ebcb7e057dd (diff)
downloadforums-492063cec63fe3665406a74e74265c1a7dd5c295.tar
forums-492063cec63fe3665406a74e74265c1a7dd5c295.tar.gz
forums-492063cec63fe3665406a74e74265c1a7dd5c295.tar.bz2
forums-492063cec63fe3665406a74e74265c1a7dd5c295.tar.xz
forums-492063cec63fe3665406a74e74265c1a7dd5c295.zip
[bug/59465] Remove start=0 from topic pagination links.
Patch once again by nn-.
Diffstat (limited to 'phpBB/includes/functions_display.php')
-rw-r--r--phpBB/includes/functions_display.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php
index f49aa42324..ea77551fc4 100644
--- a/phpBB/includes/functions_display.php
+++ b/phpBB/includes/functions_display.php
@@ -660,7 +660,7 @@ function topic_generate_pagination($replies, $url)
$times = 1;
for ($j = 0; $j < $replies + 1; $j += $per_page)
{
- $pagination .= '<a href="' . $url . '&amp;start=' . $j . '">' . $times . '</a>';
+ $pagination .= '<a href="' . $url . ($j == 0 ? '' : '&amp;start=' . $j) . '">' . $times . '</a>';
if ($times == 1 && $total_pages > 5)
{
$pagination .= ' ... ';