MDL-76635 comment: render the delete icon in the right place

Special thanks to Andrew Lyons.
This commit is contained in:
Simey Lameze
2023-06-21 11:27:41 +08:00
parent d79788245b
commit 9382d66b4a
2 changed files with 37 additions and 25 deletions
+1 -1
View File
@@ -932,7 +932,7 @@ class comment {
$deletelink .= html_writer::start_tag('a', array('href' => '#', 'id' => 'comment-delete-'.$this->cid.'-'.$cmt->id,
'class' => 'icon-no-margin', 'title' => $strdelete));
$deletelink .= $OUTPUT->pix_icon('t/delete', get_string('delete'));
$deletelink .= $OUTPUT->pix_icon('t/delete', $strdelete);
$deletelink .= html_writer::end_tag('a');
$deletelink .= html_writer::end_tag('div');
$cmt->content = $deletelink . $cmt->content;