diff options
-rw-r--r-- | modules/comment/comment.admin.inc | 6 | ||||
-rw-r--r-- | modules/comment/comment.module | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/modules/comment/comment.admin.inc b/modules/comment/comment.admin.inc index fb8a5f66c..a40502a6b 100644 --- a/modules/comment/comment.admin.inc +++ b/modules/comment/comment.admin.inc @@ -103,7 +103,7 @@ function comment_admin_overview_submit($form, &$form_state) { if ($value) { // perform the update action, then refresh node statistics db_query($query, $cid); - $comment = _comment_load($cid); + $comment = comment_load($cid); _comment_update_node_statistics($comment->nid); // Allow modules to respond to the updating of a comment. comment_invoke_comment($comment, $form_state['values']['operation']); @@ -170,7 +170,7 @@ function comment_multiple_delete_confirm(&$form_state) { // array_filter() returns only elements with actual values $comment_counter = 0; foreach (array_filter($edit['comments']) as $cid => $value) { - $comment = _comment_load($cid); + $comment = comment_load($cid); if (is_object($comment) && is_numeric($comment->cid)) { $subject = db_result(db_query('SELECT subject FROM {comments} WHERE cid = %d', $cid)); $form['comments'][$cid] = array('#type' => 'hidden', '#value' => $cid, '#prefix' => '<li>', '#suffix' => check_plain($subject) .'</li>'); @@ -199,7 +199,7 @@ function comment_multiple_delete_confirm(&$form_state) { function comment_multiple_delete_confirm_submit($form, &$form_state) { if ($form_state['values']['confirm']) { foreach ($form_state['values']['comments'] as $cid => $value) { - $comment = _comment_load($cid); + $comment = comment_load($cid); _comment_delete_thread($comment); _comment_update_node_statistics($comment->nid); } diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 0633d623d..cbaad8d4c 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -749,7 +749,7 @@ function comment_save($edit) { // the part of the thread value at the proper depth. // Get the parent comment: - $parent = _comment_load($edit['pid']); + $parent = comment_load($edit['pid']); // Strip the "/" from the end of the parent thread. $parent->thread = (string) rtrim((string) $parent->thread, '/'); @@ -1121,7 +1121,7 @@ function comment_operations($action = NULL) { * @return * The comment object. */ -function _comment_load($cid) { +function comment_load($cid) { return db_fetch_object(db_query('SELECT * FROM {comments} WHERE cid = %d', $cid)); } |