- Patch #484090 by Berdir, tic2000: comment pager was broken.
parent
4534383a7d
commit
bfdea95337
|
@ -1166,8 +1166,8 @@ function comment_render($node, $cid = 0) {
|
|||
->limit($comments_per_page);
|
||||
|
||||
$count_query = db_select('comment', 'c');
|
||||
$count_query->addExpression('COUNT(*)');
|
||||
$count_query
|
||||
->fields('c', array('cid'))
|
||||
->condition('c.nid', $nid)
|
||||
->addTag('node_access');
|
||||
|
||||
|
|
Loading…
Reference in New Issue