From df6fe90286f6e3dbb40a518af2cabee6b4312283 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 9 Jan 2005 10:06:26 +0000 Subject: [PATCH] - Updated two watchdog calls. --- modules/comment.module | 6 +++--- modules/comment/comment.module | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/comment.module b/modules/comment.module index aa596f10071..cecc1b24bb0 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -534,8 +534,8 @@ function comment_post($edit) { // Allow modules to respond to the updating of a comment. module_invoke_all('comment', 'update', $edit); - // Add entry to the watchdog log. - watchdog('content', t('Comment: updated %subject.', array('%subject' => ''. $edit['subject'] .'')), l(t('view'), 'node/'. $edit['nid'], NULL, NULL, 'comment-'. $edit['cid'])); + // Add an entry to the watchdog log. + watchdog('content', t('Comment: updated %subject.', array('%subject' => ''. $edit['subject'] .'')), WATCHDOG_NOTICE, l(t('view'), 'node/'. $edit['nid'], NULL, NULL, 'comment-'. $edit['cid'])); } else { // Add the comment to database. @@ -638,7 +638,7 @@ function comment_post($edit) { module_invoke_all('comment', 'insert', $edit); // Add an entry to the watchdog log. - watchdog('content', t('Comment: added %subject.', array('%subject' => ''. $edit['subject'] .'')), l(t('view'), 'node/'. $edit['nid'], NULL, NULL, 'comment-'. $edit['cid'])); + watchdog('content', t('Comment: added %subject.', array('%subject' => ''. $edit['subject'] .'')), WATCHDOG_NOTICE, l(t('view'), 'node/'. $edit['nid'], NULL, NULL, 'comment-'. $edit['cid'])); } // Clear the cache so an anonymous user can see his comment being added. diff --git a/modules/comment/comment.module b/modules/comment/comment.module index aa596f10071..cecc1b24bb0 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -534,8 +534,8 @@ function comment_post($edit) { // Allow modules to respond to the updating of a comment. module_invoke_all('comment', 'update', $edit); - // Add entry to the watchdog log. - watchdog('content', t('Comment: updated %subject.', array('%subject' => ''. $edit['subject'] .'')), l(t('view'), 'node/'. $edit['nid'], NULL, NULL, 'comment-'. $edit['cid'])); + // Add an entry to the watchdog log. + watchdog('content', t('Comment: updated %subject.', array('%subject' => ''. $edit['subject'] .'')), WATCHDOG_NOTICE, l(t('view'), 'node/'. $edit['nid'], NULL, NULL, 'comment-'. $edit['cid'])); } else { // Add the comment to database. @@ -638,7 +638,7 @@ function comment_post($edit) { module_invoke_all('comment', 'insert', $edit); // Add an entry to the watchdog log. - watchdog('content', t('Comment: added %subject.', array('%subject' => ''. $edit['subject'] .'')), l(t('view'), 'node/'. $edit['nid'], NULL, NULL, 'comment-'. $edit['cid'])); + watchdog('content', t('Comment: added %subject.', array('%subject' => ''. $edit['subject'] .'')), WATCHDOG_NOTICE, l(t('view'), 'node/'. $edit['nid'], NULL, NULL, 'comment-'. $edit['cid'])); } // Clear the cache so an anonymous user can see his comment being added.