- tidied up the watchdog messages

3-00
Dries Buytaert 2001-03-31 19:24:24 +00:00
parent 32ff43a48c
commit 63d334ade5
1 changed files with 3 additions and 3 deletions

View File

@ -34,15 +34,15 @@ function moderation_vote($id, $vote) {
if ($node = node_get_object(nid, $id)) {
if (node_post_threshold($node) <= $node->score) {
node_save(array(nid => $id, pid => $node->pid, type => $node->type, status => $status[posted]));
watchdog("message", "posted node '$node->title'");
watchdog("message", "node: posted '$node->title' - moderation");
}
else if (node_dump_threshold($node) >= $node->score) {
node_save(array(nid => $id, pid => $node->pid, type => $node->type, status => $status[dumped]));
watchdog("message", "dumped node '$node->title'");
watchdog("message", "node: dumped '$node->title' - moderation");
}
else if (node_timout_threshold($node) <= $node->votes) {
node_save(array(nid => $id, pid => $node->pid, type => $node->type, status => $status[expired]));
watchdog("message", "expired node '$node->title'");
watchdog("message", "node: expired '$node->title' - moderation");
}
}
}