Skip to content

Commit

Permalink
hotfix: source code iframe renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
ndrwnaguib committed Aug 17, 2020
1 parent eb58236 commit e87e12c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/mod/assign/feedback/onlinejudge/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ public function view(stdClass $grade) {
$urlparams = array('id' => $this->assignment->get_course_module()->id, 'a' => $this->assignment->get_instance()->id, 'submissionid' => $submission->id,);
$url = new moodle_url('/mod/assign/feedback/onlinejudge/source.php', $urlparams);
$attributes = array('src' => $url);
$item = html_writer::tag('iframe', $attributes);
$item = html_writer::tag('iframe', '', $attributes);
$external_link_icon = '<br><i class="fa fa-external-link" aria-hidden="true"></i>';
$external_link_attributes = array('href' => $url , 'target' => '_blank', 'title' => get_string('more'));
$item .= html_writer::tag('a', $external_link_icon, $external_link_attributes);
Expand Down

0 comments on commit e87e12c

Please sign in to comment.