diff options
Diffstat (limited to 'modules/comment.module')
-rw-r--r-- | modules/comment.module | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/comment.module b/modules/comment.module index 2640394fa..96dfbb93b 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -549,7 +549,7 @@ function comment_post($edit) { $duplicate = db_result(db_query("SELECT COUNT(cid) FROM {comments} WHERE pid = %d AND nid = %d AND subject = '%s' AND comment = '%s'", $edit["pid"], $edit["nid"], $edit['subject'], $edit['comment']), 0); if ($duplicate != 0) { - watchdog('warning', t('comment: duplicate "%comment-subject"', array('%comment-subject' => $edit["subject"]))); + watchdog('warning', t('Comment: duplicate %subject.', array('%subject' => '<em>'. $edit["subject"] .'</em>'))); } if ($edit["cid"]) { @@ -562,7 +562,7 @@ function comment_post($edit) { module_invoke_all('comment', 'update', $edit); // Add entry to the watchdog log. - watchdog('special', t('comment: updated "%comment-subject"', array('%comment-subject' => $edit['subject'])), l(t('view'), 'node/'. $edit['nid'], NULL, NULL, 'comment-'. $edit['cid'])); + watchdog('special', t('Comment: updated %subject.', array('%subject' => '<em>'. $edit['subject'] .'</em>')), l(t('view'), 'node/'. $edit['nid'], NULL, NULL, 'comment-'. $edit['cid'])); } else { // Add the comment to database. @@ -671,7 +671,7 @@ function comment_post($edit) { module_invoke_all('comment', 'insert', $edit); // Add an entry to the watchdog log. - watchdog('special', t('comment: added "%comment-subject"', array('%comment-subject' => $edit['subject'])), l(t('view'), 'node/'. $edit['nid'], NULL, NULL, 'comment-'. $edit['cid'])); + watchdog('special', t('Comment: added %subject.', array('%subject' => '<em>'. $edit['subject'] .'</em>')), l(t('view'), 'node/'. $edit['nid'], NULL, NULL, 'comment-'. $edit['cid'])); } // Clear the cache so an anonymous user can see his comment being added. @@ -692,7 +692,7 @@ function comment_post($edit) { } } else { - watchdog('error', t('comment: unauthorized comment submitted or comment submitted to a closed node "%comment-subject"', array('%comment-subject' => $edit['subject']))); + watchdog('error', t('Comment: unauthorized comment submitted or comment submitted to a closed node %subject.', array('%subject' => '<em>'. $edit['subject'] .'</em>'))); } } @@ -1006,7 +1006,7 @@ function comment_delete($cid) { function comment_save($id, $edit) { db_query("UPDATE {comments} SET subject = '%s', comment = '%s', status = %d WHERE cid = %d", $edit['subject'], $edit['comment'], $edit['status'], $id); - watchdog('special', t('comment: modified "%comment-subject"', array('%comment-subject' => $edit['subject']))); + watchdog('special', t('Comment: modified %subject.', array('%subject' => '<em>'. $edit['subject'] .'</em>'))); drupal_set_message(t('The comment has been saved.')); } @@ -1629,7 +1629,7 @@ function theme_comment_post_forbidden() { function _comment_delete_thread($comment) { // Delete the comment: db_query('DELETE FROM {comments} WHERE cid = %d', $comment->cid); - watchdog('special', t('comment: deleted "%comment-subject"', array('%comment-subject' => $comment->subject))); + watchdog('special', t('Comment: deleted %subject.', array('%subject' => "<em>$comment->subject</em>"))); // Delete the comment's replies: $result = db_query('SELECT cid, subject FROM {comments} WHERE pid = %d', $comment->cid); |