summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-01-09 10:06:26 +0000
committerDries Buytaert <dries@buytaert.net>2005-01-09 10:06:26 +0000
commitdf6fe90286f6e3dbb40a518af2cabee6b4312283 (patch)
treedf8c200986aa61932e724b7e43a4b46c7dab68c6 /modules
parente92ed7137993385805e7e730d6a3d33da44b565d (diff)
downloadbrdo-df6fe90286f6e3dbb40a518af2cabee6b4312283.tar.gz
brdo-df6fe90286f6e3dbb40a518af2cabee6b4312283.tar.bz2
- Updated two watchdog calls.
Diffstat (limited to 'modules')
-rw-r--r--modules/comment.module6
-rw-r--r--modules/comment/comment.module6
2 files changed, 6 insertions, 6 deletions
diff --git a/modules/comment.module b/modules/comment.module
index aa596f100..cecc1b24b 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' => '<em>'. $edit['subject'] .'</em>')), 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' => '<em>'. $edit['subject'] .'</em>')), 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' => '<em>'. $edit['subject'] .'</em>')), l(t('view'), 'node/'. $edit['nid'], NULL, NULL, 'comment-'. $edit['cid']));
+ watchdog('content', t('Comment: added %subject.', array('%subject' => '<em>'. $edit['subject'] .'</em>')), 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 aa596f100..cecc1b24b 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' => '<em>'. $edit['subject'] .'</em>')), 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' => '<em>'. $edit['subject'] .'</em>')), 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' => '<em>'. $edit['subject'] .'</em>')), l(t('view'), 'node/'. $edit['nid'], NULL, NULL, 'comment-'. $edit['cid']));
+ watchdog('content', t('Comment: added %subject.', array('%subject' => '<em>'. $edit['subject'] .'</em>')), 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.