summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-05-31 18:35:26 +0000
committerDries Buytaert <dries@buytaert.net>2001-05-31 18:35:26 +0000
commit8111cd205b1817704f1e049e49f49437c56ac1ab (patch)
tree108e258c2d3d8ab66bcd3159e6a4a470d2713533
parent83ac3c58767b4b45c6a6fbc90583af21dd32423f (diff)
downloadbrdo-8111cd205b1817704f1e049e49f49437c56ac1ab.tar.gz
brdo-8111cd205b1817704f1e049e49f49437c56ac1ab.tar.bz2
- Fixed bug in moderation queue.
-rw-r--r--modules/queue.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/queue.module b/modules/queue.module
index 137335854..d427ff95c 100644
--- a/modules/queue.module
+++ b/modules/queue.module
@@ -36,15 +36,15 @@ function queue_vote($id, $vote) {
// Update submission's score- and votes-field:
db_query("UPDATE node SET score = score $vote, votes = votes + 1, users = '". field_set($node->users, $user->userid, $vote) ."' WHERE nid = $id");
- if (variable_get("post_threshold", 4, $node) <= $node->score - 1) {
+ if (variable_get("post_threshold", 4, $node) < $node->score + $vote) {
node_save(array(nid => $id, status => $status[posted]), array(status));
watchdog("message", "node: posted '$node->title' - moderation");
}
- else if (variable_get("dump_threshold", -2, $node) >= $node->score - 1) {
+ else if (variable_get("dump_threshold", -2, $node) > $node->score + $vote) {
node_save(array(nid => $id, status => $status[dumped]), array(status));
watchdog("message", "node: dumped '$node->title' - moderation");
}
- else if (variable_get("expire_threshold", 8, $node) <= $node->votes - 1) {
+ else if (variable_get("expire_threshold", 8, $node) < $node->votes + $vote) {
node_save(array(nid => $id, status => $status[expired]), array(status));
watchdog("message", "node: expired '$node->title' - moderation");
}