summaryrefslogtreecommitdiff
path: root/modules/forum/forum.module
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-09-02 14:56:18 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-09-02 14:56:18 +0000
commite310d9e4a4b7bd94e5e743f8dbf3ebdd530ced1e (patch)
treec709d57e351db0183ecaca760a4b4aeb4b71c751 /modules/forum/forum.module
parent1b658ae850c10bc55adfce4db46d25e3ff88da05 (diff)
downloadbrdo-e310d9e4a4b7bd94e5e743f8dbf3ebdd530ced1e.tar.gz
brdo-e310d9e4a4b7bd94e5e743f8dbf3ebdd530ced1e.tar.bz2
#6162 by various people: actually point new anchors to the page the first new comment is displayed (in a multipage comment view)
Diffstat (limited to 'modules/forum/forum.module')
-rw-r--r--modules/forum/forum.module2
1 files changed, 1 insertions, 1 deletions
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;