MDL-43011 SCORM: use embedded layout instead of scorm for pop-up windows
authorDan Marsden <dan@danmarsden.com>
Thu, 3 Apr 2014 22:47:13 +0000 (11:47 +1300)
committerDan Marsden <dan@danmarsden.com>
Thu, 3 Apr 2014 22:47:13 +0000 (11:47 +1300)
mod/scorm/player.php

index 77a438c..308d51b 100644 (file)
@@ -90,7 +90,7 @@ $strexit = get_string('exitactivity', 'scorm');
 $coursecontext = context_course::instance($course->id);
 
 if ($displaymode == 'popup') {
-    $PAGE->set_pagelayout('popup');
+    $PAGE->set_pagelayout('embedded');
 } else {
     $shortname = format_string($course->shortname, true, array('context' => $coursecontext));
     $pagetitle = strip_tags("$shortname: ".format_string($scorm->name));