summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--generate/generate-content.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/generate/generate-content.php b/generate/generate-content.php
index 4e77fec..2beb7e1 100644
--- a/generate/generate-content.php
+++ b/generate/generate-content.php
@@ -69,6 +69,7 @@ function create_comments($records, $users, $nodes, $comments) {
$comment->uid = $users[array_rand($users)];
db_query("INSERT INTO {comments} (cid, nid, pid, uid, subject, comment, status, thread, timestamp) VALUES (%d, %d, %d, %d, '%s', '%s', %d, %d, %d)", $comment->cid, $comment->nid, $comment->pid, $comment->uid, $comment->subject, $comment->comment, 0, 0, time());
+ _comment_update_node_statistics($comment->nid);
print "created comment #$i<br />";
}