diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-11-21 22:46:12 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-11-21 22:46:12 +0000 |
| commit | aedd73055238aaf8082687c3977d6a06ef5855ab (patch) | |
| tree | 432a3266e5dd5c720241bb49d490f666b6c60f8b /phpBB/viewtopic.php | |
| parent | bb05d733eeae8c1a5c1a3d4fab17d3ed2e864fa5 (diff) | |
| download | forums-aedd73055238aaf8082687c3977d6a06ef5855ab.tar forums-aedd73055238aaf8082687c3977d6a06ef5855ab.tar.gz forums-aedd73055238aaf8082687c3977d6a06ef5855ab.tar.bz2 forums-aedd73055238aaf8082687c3977d6a06ef5855ab.tar.xz forums-aedd73055238aaf8082687c3977d6a06ef5855ab.zip | |
Of course it has to be more tricky than that doesn't it ... well, I'm off to bed so it can stick it up its pipe and smoke it for now :D
git-svn-id: file:///svn/phpbb/trunk@3078 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
| -rw-r--r-- | phpBB/viewtopic.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 68c8b17a9a..8784e2ee91 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -272,7 +272,7 @@ if ($user->data['user_id'] != ANONYMOUS) } // Was a highlight request part of the URI? -$highlight_match = ''; +$highlight_match = $highlight = ''; if (isset($_GET['highlight'])) { // Split words and phrases @@ -286,6 +286,8 @@ if (isset($_GET['highlight'])) } } unset($words); + + $highlight = urlencode($_GET['highlight']); } // Quick mod tools @@ -300,7 +302,7 @@ $topic_mod .= ($auth->acl_gets('m_split', 'a_', $forum_id)) ? '<option value="sp $topic_mod .= ($auth->acl_gets('m_merge', 'a_', $forum_id)) ? '<option value="merge">' . $user->lang['Merge_topic'] . '</option>' : ''; // If we've got a hightlight set pass it on to pagination. -$pagination = ($highlight_match) ? generate_pagination("viewtopic.$phpEx$SID&t=$topic_id&postdays=$post_days&postorder=$post_order&highlight=" . urlencode($_GET['highlight']), $topic_replies, $config['posts_per_page'], $start) : generate_pagination("viewtopic.$phpEx$SID&t=$topic_id&postdays=$post_days&postorder=$post_order", $topic_replies, $config['posts_per_page'], $start); +$pagination = ($highlight_match) ? generate_pagination("viewtopic.$phpEx$SID&t=$topic_id&postdays=$post_days&postorder=$post_order&highlight=$highlight", $topic_replies, $config['posts_per_page'], $start) : generate_pagination("viewtopic.$phpEx$SID&t=$topic_id&postdays=$post_days&postorder=$post_order", $topic_replies, $config['posts_per_page'], $start); // Post, reply and other URL generation for // templating vars @@ -429,13 +431,13 @@ $template->assign_vars(array( 'S_MOD_ACTION' => "modcp.$phpEx$SID&t=$topic_id", 'S_WATCH_TOPIC' => $s_watching_topic, - 'U_VIEW_TOPIC' => "viewtopic.$phpEx$SID&t=$topic_id&start=$start&postdays=$post_days&postorder=$post_order&highlight=" . urlencode($_GET['highlight']), + 'U_VIEW_TOPIC' => "viewtopic.$phpEx$SID&t=$topic_id&start=$start&postdays=$post_days&postorder=$post_order&highlight=$highlight", 'U_TOPIC' => $server_path . 'viewtopic.' . $phpEx . '?t=' . $topic_id, 'U_FORUM' => $server_path, 'U_VIEW_FORUM' => $view_forum_url, 'U_VIEW_OLDER_TOPIC' => $view_prev_topic_url, 'U_VIEW_NEWER_TOPIC' => $view_next_topic_url, - 'U_PRINT_TOPIC' => "viewtopic.$phpEx$SID&t=$topic_id&start=$start&postdays=$post_days&postorder=$post_order&highlight=" . $_GET['highlight'] . "&view=print", + 'U_PRINT_TOPIC' => "viewtopic.$phpEx$SID&t=$topic_id&start=$start&postdays=$post_days&postorder=$post_order&highlight=$highlight&view=print", 'U_POST_NEW_TOPIC' => $new_topic_url, 'U_POST_REPLY_TOPIC' => $reply_topic_url) ); |
