summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-08-31 08:55:45 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-08-31 08:55:45 +0000
commite051f5bd904f6bc162ea03df8ce3196d28c71fe0 (patch)
treec6e809e101281e15ce55e60cee3701a3c606631c
parent4c5b53040a9b1df2073b9b0146736e03864849cb (diff)
downloadbrdo-e051f5bd904f6bc162ea03df8ce3196d28c71fe0.tar.gz
brdo-e051f5bd904f6bc162ea03df8ce3196d28c71fe0.tar.bz2
#81481 by erdemkose. Show the comment subject on delete confirmation.
-rw-r--r--modules/comment/comment.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 06aaeec89..557d63d47 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -960,7 +960,7 @@ function comment_delete($cid) {
drupal_goto("node/$comment->nid");
}
else if (is_object($comment) && is_numeric($comment->cid)) {
- $output = drupal_get_form('comment_confirm_delete', $subject, $nid);
+ $output = drupal_get_form('comment_confirm_delete', $comment->subject, $comment->nid);
}
else {
drupal_set_message(t('The comment no longer exists.'));
@@ -972,7 +972,7 @@ function comment_delete($cid) {
function comment_confirm_delete($subject, $nid) {
return confirm_form(
array(),
- t('Are you sure you want to delete the comment %title?', array('%title' => $comment->subject)),
+ t('Are you sure you want to delete the comment %title?', array('%title' => $subject)),
'node/'. $nid,
t('Any replies to this comment will be lost. This action cannot be undone.'),
t('Delete'),