diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-01-09 09:22:40 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-01-09 09:22:40 +0000 |
commit | 64b100d19ace2c9b82ced4438036a64a69eda3c3 (patch) | |
tree | 36a433e7cd27810edb315c2fc79e764742019b54 /modules/queue.module | |
parent | 0830efe9a6c056d20a286880733fedcbd28b62fa (diff) | |
download | brdo-64b100d19ace2c9b82ced4438036a64a69eda3c3.tar.gz brdo-64b100d19ace2c9b82ced4438036a64a69eda3c3.tar.bz2 |
- Patch #13260 by UnConeD: watchdog module improvements.
We added a 'severity' column to watchdog():
watchdog($type, $message, $link) --> watchdog($type, $message, $severity, $link);
* Specify a severity in case you are reporting a warning or error.
* The $link-parameter is now the fourth parameter instead of the third.
TODO: document this in the upgrade guide.
Diffstat (limited to 'modules/queue.module')
-rw-r--r-- | modules/queue.module | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/queue.module b/modules/queue.module index 46d4a6d71..03fa0eeeb 100644 --- a/modules/queue.module +++ b/modules/queue.module @@ -78,34 +78,34 @@ function queue_vote($node, $vote) { $node->moderate = 0; $node->promote = 1; node_save($node); - watchdog('special', t('Moderation: approved %title.', array('%title' => "<em>$node->title</em>"))); + watchdog('content', t('Moderation: approved %title.', array('%title' => "<em>$node->title</em>"))); drupal_set_message(t('The post is promoted.')); } else if (variable_get('queue_threshold_dump', -2) >= $node->score) { if ($node->revisions) { node_revision_rollback($node, end(node_revision_list($node))); - watchdog('special', t('Moderation: declined %title (rollback).', array('%title' => "<em>$node->title</em>"))); + watchdog('content', t('Moderation: declined %title (rollback).', array('%title' => "<em>$node->title</em>"))); drupal_set_message(t('The post has been declined and the previous version has been restored.')); } else { $node->moderate = 0; $node->status = 0; node_save($node); - watchdog('special', t('Moderation: declined %title.', array('%title' => "<em>$node->title</em>"))); + watchdog('content', t('Moderation: declined %title.', array('%title' => "<em>$node->title</em>"))); drupal_set_message(t('The post has been declined.')); } } else if (variable_get('queue_threshold_expire', 8) <= $node->votes) { if ($node->revisions) { node_revision_rollback($node, end(node_revision_list($node))); - watchdog('special', t('Moderation: expired %title (rollback).', array('%title' => "<em>$node->title</em>"))); + watchdog('content', t('Moderation: expired %title (rollback).', array('%title' => "<em>$node->title</em>"))); drupal_set_message(t('The post has expired and the previous version has been restored.')); } else { $node->moderate = 0; $node->status = 0; node_save($node); - watchdog('special', t('Moderation: expired %title.', array('%title' => "<em>$node->title</em>"))); + watchdog('content', t('Moderation: expired %title.', array('%title' => "<em>$node->title</em>"))); drupal_set_message(t('The post has expired.')); } } |