diff --git a/lib/resourcelib.php b/lib/resourcelib.php index 6e505d9f25e..cbd16cf76c2 100644 --- a/lib/resourcelib.php +++ b/lib/resourcelib.php @@ -233,13 +233,12 @@ function resourcelib_embed_pdf($fullurl, $title, $clicktoopen) { global $CFG, $PAGE; $code = << - - - $clicktoopen - - -EOT; +
+ +
+ EOT; // the size is hardcoded in the boject obove intentionally because it is adjusted by the following function on-the-fly $PAGE->requires->js_init_call('M.util.init_maximised_embed', array('resourceobject'), true);