From 0290031d45f8d315ff7455a65e3f8fb55e97890d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 8 Nov 2008 20:43:54 +0000 Subject: - Patch #319788 by stella, nedjo et al: pass language code to filters when available. --- modules/comment/comment.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/comment/comment.module') diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 7644e0f9e..d1797fef8 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -604,7 +604,7 @@ function comment_nodeapi_update_index(&$node, $arg = 0) { $text = ''; $comments = db_query('SELECT subject, comment, format FROM {comments} WHERE nid = %d AND status = %d', $node->nid, COMMENT_PUBLISHED); while ($comment = db_fetch_object($comments)) { - $text .= '

' . check_plain($comment->subject) . '

' . check_markup($comment->comment, $comment->format, FALSE); + $text .= '

' . check_plain($comment->subject) . '

' . check_markup($comment->comment, $comment->format, '', FALSE); } return $text; } @@ -1597,7 +1597,7 @@ function theme_comment_view($comment, $node, $links = array(), $visible = TRUE) // Switch to folded/unfolded view of the comment. if ($visible) { - $comment->comment = check_markup($comment->comment, $comment->format, FALSE); + $comment->comment = check_markup($comment->comment, $comment->format, '', FALSE); // Comment API hook. comment_invoke_comment($comment, 'view'); $output .= theme('comment', $comment, $node, $links); -- cgit v1.2.3