diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-12-31 11:21:32 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-12-31 11:21:32 +0000 |
commit | 799ceae29bde6989a6aac39581047161b7954ad2 (patch) | |
tree | efd047d6fa2298738d6fb107e67ce148d2bae055 /modules/forum | |
parent | 34265be9b760cb22a018c39cb906ca30a5c00f46 (diff) | |
download | brdo-799ceae29bde6989a6aac39581047161b7954ad2.tar.gz brdo-799ceae29bde6989a6aac39581047161b7954ad2.tar.bz2 |
- Patch #42705 by Cvbge: added missing format_plural().
Diffstat (limited to 'modules/forum')
-rw-r--r-- | modules/forum/forum.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/forum/forum.module b/modules/forum/forum.module index 8e22f6b3b..35f9a874b 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -937,7 +937,7 @@ function theme_forum_list($forums, $parents, $tid) { $rows[] = array( array('data' => $description, 'class' => 'forum'), - array('data' => $forum->num_topics . ($new_topics ? '<br />'. l(t('%a new', array('%a' => $new_topics)), "forum/$forum->tid", NULL, NULL, 'new') : ''), 'class' => 'topics'), + array('data' => $forum->num_topics . ($new_topics ? '<br />'. l(format_plural($new_topics, '1 new', '%count new'), "forum/$forum->tid", NULL, NULL, 'new') : ''), 'class' => 'topics'), array('data' => $forum->num_posts, 'class' => 'posts'), array('data' => _forum_format($forum->last_post), 'class' => 'last-reply')); } @@ -972,7 +972,7 @@ function theme_forum_topic_list($tid, $topics, $sortby, $forum_per_page) { $rows[] = array( array('data' => theme('forum_icon', $topic->new, $topic->num_comments, $topic->comment_mode, $topic->sticky), 'class' => 'icon'), array('data' => l($topic->title, "node/$topic->nid"), 'class' => 'topic'), - array('data' => $topic->num_comments . ($topic->new_replies ? '<br />'. l(t('%a new', array('%a' => $topic->new_replies)), "node/$topic->nid", NULL, NULL, 'new') : ''), 'class' => 'replies'), + array('data' => $topic->num_comments . ($topic->new_replies ? '<br />'. l(format_plural($topic->new_replies, '1 new', '%count new'), "node/$topic->nid", NULL, NULL, 'new') : ''), 'class' => 'replies'), array('data' => _forum_format($topic), 'class' => 'created'), array('data' => _forum_format($topic->last_reply), 'class' => 'last-reply') ); |