MDL-76635 comment: render the delete icon in the right place
Special thanks to Andrew Lyons.
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user