From e051f5bd904f6bc162ea03df8ce3196d28c71fe0 Mon Sep 17 00:00:00 2001
From: Neil Drumm <drumm@3064.no-reply.drupal.org>
Date: Thu, 31 Aug 2006 08:55:45 +0000
Subject: [PATCH] #81481 by erdemkose. Show the comment subject on delete
 confirmation.

---
 modules/comment/comment.module | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 06aaeec89f01..557d63d47f73 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'),
-- 
GitLab