From ca1b45581b2492012aacbcb81a94ea491626c5f9 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Thu, 24 Jun 2004 08:02:15 +0000 Subject: [PATCH] fixed redirect for first cookie setting... git-svn-id: file:///svn/phpbb/trunk@4917 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/viewforum.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index a91bd53777..ec1b8c20e7 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -72,7 +72,7 @@ else if (!isset($tracking_topics[$forum_id]) && $user->data['user_id'] != ANONYMOUS) { markread('mark', $forum_id); - redirect(str_replace('&', '&', htmlspecialchars((!empty($_SERVER['REQUEST_URI'])) ? $_SERVER['REQUEST_URI'] : $_ENV['REQUEST_URI']))); + redirect("viewforum.$phpEx$SID&f=$forum_id"); } } @@ -499,6 +499,7 @@ if ($forum_data['forum_type'] == FORUM_POST || ($forum_data['forum_flags'] & 16) } // Goto message generation + // Note: Template this a little bit more to allow style authors seperating goto_page, next, prev and pagination block? if (($replies + 1) > $config['posts_per_page']) { $total_pages = ceil(($replies + 1) / $config['posts_per_page']); @@ -516,7 +517,7 @@ if ($forum_data['forum_type'] == FORUM_POST || ($forum_data['forum_flags'] & 16) } else if ($times < $total_pages) { - $goto_page .= ', '; + $goto_page .= $user->theme['primary']['pagination_sep']; } $times++; }