Commit bfdea953 authored by Dries's avatar Dries

- Patch #484090 by Berdir, tic2000: comment pager was broken.

parent 4534383a
......@@ -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');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment