summaryrefslogtreecommitdiff
path: root/modules/comment.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-01-29 22:02:37 +0000
committerDries Buytaert <dries@buytaert.net>2005-01-29 22:02:37 +0000
commit993ea0c6c5a07cf9c2edadf2c0f6a378cde56acb (patch)
tree3a0999b14fee17844a3318ee2f564191a83e31f3 /modules/comment.module
parente6d36892abca87d1c668d6294106a154c219cee4 (diff)
downloadbrdo-993ea0c6c5a07cf9c2edadf2c0f6a378cde56acb.tar.gz
brdo-993ea0c6c5a07cf9c2edadf2c0f6a378cde56acb.tar.bz2
- Patch #16111 by chx: generalized node_rewrite_query to db_rewrite_query.
Diffstat (limited to 'modules/comment.module')
-rw-r--r--modules/comment.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment.module b/modules/comment.module
index dea5870a6..18c46f354 100644
--- a/modules/comment.module
+++ b/modules/comment.module
@@ -157,7 +157,7 @@ function comment_block($op = 'list', $delta = 0) {
return $blocks;
}
else if ($op == 'view' && user_access('access comments')) {
- $result = db_query_range(node_rewrite_sql('SELECT c.nid, c.* FROM {comments} c WHERE status = 0 ORDER BY timestamp DESC', 'c'), 0, 10);
+ $result = db_query_range(db_rewrite_sql('SELECT c.nid, c.* FROM {comments} c WHERE status = 0 ORDER BY timestamp DESC', 'c'), 0, 10);
$items = array();
while ($comment = db_fetch_object($result)) {
$items[] = l($comment->subject, 'node/'. $comment->nid, NULL, NULL, 'comment-'. $comment->cid) .'<br />'. t('%time ago', array('%time' => format_interval(time() - $comment->timestamp)));