diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-07-29 21:06:33 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-07-29 21:06:33 +0000 |
commit | e4096e14180d231574e1830fcc61b823a71592b3 (patch) | |
tree | 71bc1ea8c50654fa9ec530ec602b9ca419a300a9 /modules/comment/comment.module | |
parent | e5ad13e3f8a95b9add11f181e50e96003a597ebf (diff) | |
download | brdo-e4096e14180d231574e1830fcc61b823a71592b3.tar.gz brdo-e4096e14180d231574e1830fcc61b823a71592b3.tar.bz2 |
- #27551: Rename check_output() to check_markup(). Needs contrib updates!
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index fa3a98443..568471b97 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -277,7 +277,7 @@ function comment_nodeapi(&$node, $op, $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_output($comment->comment, $comment->format, FALSE); + $text .= '<h2>'. check_plain($comment->subject) .'</h2>'. check_markup($comment->comment, $comment->format, FALSE); } return $text; @@ -472,8 +472,8 @@ function comment_validate($edit) { // 1) Filter it into HTML // 2) Strip out all HTML tags // 3) Convert entities back to plain-text. - // Note: format is checked by check_output(). - $edit['subject'] = truncate_utf8(decode_entities(strip_tags(check_output($edit['comment'], $edit['format']))), 29, TRUE); + // Note: format is checked by check_markup(). + $edit['subject'] = truncate_utf8(decode_entities(strip_tags(check_markup($edit['comment'], $edit['format']))), 29, TRUE); } // Validate the comment's body. @@ -1458,7 +1458,7 @@ function theme_comment_view($comment, $links = '', $visible = 1) { // Switch to folded/unfolded view of the comment if ($visible) { - $comment->comment = check_output($comment->comment, $comment->format, FALSE); + $comment->comment = check_markup($comment->comment, $comment->format, FALSE); $output .= theme('comment', $comment, $links); } else { |