Commit e051f5bd authored by drumm's avatar drumm
Browse files

#81481 by erdemkose. Show the comment subject on delete confirmation.

parent 4c5b5304
...@@ -960,7 +960,7 @@ function comment_delete($cid) { ...@@ -960,7 +960,7 @@ function comment_delete($cid) {
drupal_goto("node/$comment->nid"); drupal_goto("node/$comment->nid");
} }
else if (is_object($comment) && is_numeric($comment->cid)) { 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 { else {
drupal_set_message(t('The comment no longer exists.')); drupal_set_message(t('The comment no longer exists.'));
...@@ -972,7 +972,7 @@ function comment_delete($cid) { ...@@ -972,7 +972,7 @@ function comment_delete($cid) {
function comment_confirm_delete($subject, $nid) { function comment_confirm_delete($subject, $nid) {
return confirm_form( return confirm_form(
array(), 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, 'node/'. $nid,
t('Any replies to this comment will be lost. This action cannot be undone.'), t('Any replies to this comment will be lost. This action cannot be undone.'),
t('Delete'), t('Delete'),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment