Skip to content

Commit

Permalink
Replace deprecated pix_url call.
Browse files Browse the repository at this point in the history
  • Loading branch information
troywilliams committed Dec 9, 2017
1 parent 82fc0b1 commit 7cb3f49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ public function render_attachments(array $attachments) {
$html .= html_writer::start_tag('tbody');
$html .= html_writer::start_tag('tr');
$html .= html_writer::start_tag('td');
$html .= html_writer::link($downloadurl, html_writer::empty_tag('img', array('src' => $OUTPUT->pix_url(file_mimetype_icon($mimetype)), 'class' => 'icon', 'alt' => $mimetype)));
$html .= html_writer::link($downloadurl, html_writer::empty_tag('img', array('src' => $OUTPUT->image_url(file_mimetype_icon($mimetype)), 'class' => 'icon', 'alt' => $mimetype)));
$html .= html_writer::end_tag('td');
$html .= html_writer::start_tag('td');
$html .= html_writer::tag('i', $filename);
Expand Down

0 comments on commit 7cb3f49

Please sign in to comment.