Merge branch 'MDL-79283-402' of https://github.com/paulholden/moodle into MOODLE_402_STABLE

This commit is contained in:
Huong Nguyen
2023-09-15 17:11:43 +08:00
committed by Ilya Tregubov
+2 -2
View File
@@ -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>