From e310d9e4a4b7bd94e5e743f8dbf3ebdd530ced1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Sun, 2 Sep 2007 14:56:18 +0000 Subject: #6162 by various people: actually point new anchors to the page the first new comment is displayed (in a multipage comment view) --- modules/forum/forum.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/forum') diff --git a/modules/forum/forum.module b/modules/forum/forum.module index 61c52ad09..d01a34449 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -786,7 +786,7 @@ function template_preprocess_forum_topic_list(&$variables) { $variables['topics'][$id]->new_url = ''; if ($topic->new_replies) { $variables['topics'][$id]->new_text = t('!count new', array('!count' => $variables['forums'][$id]->new_topics)); - $variables['topics'][$id]->new_url = url("node/$topic->nid", array('fragment' => 'new')); + $variables['topics'][$id]->new_url = url("node/$topic->nid", array('query' => comment_new_page_count($topic->num_comments, $topic->new_replies, $topic->nid), 'fragment' => 'new')); } $variables['topics'][$id]->moved = FALSE; -- cgit v1.2.3