Skip to content

Commit

Permalink
Merge branch 'MDL-79283' of https://github.com/paulholden/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
HuongNV13 authored and ilyatregubov committed Sep 15, 2023
2 parents ced2753 + fba49ba commit c73c1d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/resourcelib.php
Expand Up @@ -262,13 +262,13 @@ function resourcelib_embed_general($fullurl, $title, $clicktoopen, $mimetype) {
$fullurl = $fullurl->out();
}

$param = '<param name="src" value="'.$fullurl.'" />';
$title = s($title);

// Always use iframe embedding because object tag does not work much,
// this is ok in HTML5.
$code = <<<EOT
<div class="resourcecontent resourcegeneral">
<iframe id="resourceobject" src="$fullurl">
<iframe id="resourceobject" src="$fullurl" title="$title">
$clicktoopen
</iframe>
</div>
Expand Down

0 comments on commit c73c1d1

Please sign in to comment.