diff --git a/includes/advanced_forum_preprocess_forum_list.inc b/includes/advanced_forum_preprocess_forum_list.inc index 0231116..81d38c7 100644 --- a/includes/advanced_forum_preprocess_forum_list.inc +++ b/includes/advanced_forum_preprocess_forum_list.inc @@ -307,6 +307,7 @@ function advanced_forum_process_forum($forum) { if ($forum->new_posts) { $forum->new_posts_text = format_plural($forum->new_posts, '1 new', '@count new'); + $forum->new_posts_path = "forum/$forum->tid"; $forum->new_posts_link = url("forum/$forum->tid", array('fragment' => 'new')); } } diff --git a/includes/theme.inc b/includes/theme.inc index f16b0ce..d4d57c8 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -210,7 +210,7 @@ function theme_advanced_forum_subforum_list(&$variables) { $text .= ')'; } else { - $text .= ' - ' . l($subforum->new_posts_text, $subforum->new_posts_link) . ')'; + $text .= ' - ' . l($subforum->new_posts_text, $subforum->new_posts_path, array('fragment' => 'new')) . ')'; } $subforums[] = $text;