- tidied up the watchdog messages
parent
32ff43a48c
commit
63d334ade5
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue