projects
/
project/devel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
4d80bbe
)
generated comments now update the node_comment_statistics table
author
Robert Douglass
Wed, 22 Nov 2006 16:38:10 +0000 (16:38 +0000)
committer
Robert Douglass
Wed, 22 Nov 2006 16:38:10 +0000 (16:38 +0000)
generate/generate-content.php
patch
|
blob
|
blame
|
history
diff --git
a/generate/generate-content.php
b/generate/generate-content.php
index
4e77fec
..
2beb7e1
100644
(file)
--- 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 />";
}