summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2005-01-12 16:02:42 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2005-01-12 16:02:42 +0000
commitb8b36bd94157705ca545581abfb75c116fc98859 (patch)
tree4d048c2ab9324e1eab486f8fea08e2177caad25d /modules
parentbf12368205926df4f0e586a0f008b480d7833a4d (diff)
downloadbrdo-b8b36bd94157705ca545581abfb75c116fc98859.tar.gz
brdo-b8b36bd94157705ca545581abfb75c116fc98859.tar.bz2
- Fix comment pager counting unpublished comments.
Diffstat (limited to 'modules')
-rw-r--r--modules/comment.module2
-rw-r--r--modules/comment/comment.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/comment.module b/modules/comment.module
index 86e89d9cd..e7529b411 100644
--- a/modules/comment.module
+++ b/modules/comment.module
@@ -846,7 +846,7 @@ function comment_render($node, $cid = 0) {
}
// Start a form, for use with comment control and moderation.
- $result = pager_query($query, $comments_per_page, 0, "SELECT COUNT(*) FROM {comments} WHERE c.status = 0 AND nid = '". db_escape_string($nid) ."'");
+ $result = pager_query($query, $comments_per_page, 0, "SELECT COUNT(*) FROM {comments} WHERE status = 0 AND nid = '". db_escape_string($nid) ."'");
if (db_num_rows($result) && (variable_get('comment_controls', 0) == 0 || variable_get('comment_controls', 0) == 2)) {
$output .= '<form method="post" action="'. url('comment') ."\"><div>\n";
$output .= theme('comment_controls', $threshold, $mode, $order, $comments_per_page);
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 86e89d9cd..e7529b411 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -846,7 +846,7 @@ function comment_render($node, $cid = 0) {
}
// Start a form, for use with comment control and moderation.
- $result = pager_query($query, $comments_per_page, 0, "SELECT COUNT(*) FROM {comments} WHERE c.status = 0 AND nid = '". db_escape_string($nid) ."'");
+ $result = pager_query($query, $comments_per_page, 0, "SELECT COUNT(*) FROM {comments} WHERE status = 0 AND nid = '". db_escape_string($nid) ."'");
if (db_num_rows($result) && (variable_get('comment_controls', 0) == 0 || variable_get('comment_controls', 0) == 2)) {
$output .= '<form method="post" action="'. url('comment') ."\"><div>\n";
$output .= theme('comment_controls', $threshold, $mode, $order, $comments_per_page);