Skip to content

Commit

Permalink
update, bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
James Michael DuPont committed Sep 27, 2012
1 parent ef9bad8 commit 1e2119b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/modules/forum/forum.module
Expand Up @@ -1229,6 +1229,7 @@ function template_preprocess_forum_topic_list(&$variables) {
$variables['topics'][$id]->new_text = '';
$variables['topics'][$id]->new_url = '';
if ($topic->new_replies) {
$original_title = $variables['topics'][$id]->title; // UNTESTED

This comment has been minimized.

Copy link
@h4ck3rm1k3

h4ck3rm1k3 Sep 27, 2012

Owner

not tested yet, just an idea

$variables['topics'][$id]->new_text = format_plural($topic->new_replies, '1 new post<span class="element-invisible"> in topic %title</span>', '@count new posts<span class="element-invisible"> in topic %title</span>', array('%title' => $original_title));
$variables['topics'][$id]->new_url = url("node/$topic->nid", array('query' => comment_new_page_count($topic->comment_count, $topic->new_replies, $topic), 'fragment' => 'new'));
}
Expand Down

0 comments on commit 1e2119b

Please sign in to comment.