diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-11-08 20:43:54 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-11-08 20:43:54 +0000 |
commit | 0290031d45f8d315ff7455a65e3f8fb55e97890d (patch) | |
tree | 772f046dfb66c2e084432b9e134dc80c75d96f86 /modules/comment/comment.module | |
parent | b3b68b8b18cd2fe86510cd71ae553cdbc97e59d3 (diff) | |
download | brdo-0290031d45f8d315ff7455a65e3f8fb55e97890d.tar.gz brdo-0290031d45f8d315ff7455a65e3f8fb55e97890d.tar.bz2 |
- Patch #319788 by stella, nedjo et al: pass language code to filters when available.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 4 |
1 files changed, 2 insertions, 2 deletions
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 .= '<h2>' . check_plain($comment->subject) . '</h2>' . check_markup($comment->comment, $comment->format, FALSE); + $text .= '<h2>' . check_plain($comment->subject) . '</h2>' . 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); |