Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'MDL-39219_scorm_ie7_24' of git://github.com/davosmith/m…

…oodle into MOODLE_24_STABLE
  • Loading branch information...
commit fdeb0d80ed04816cf8eaa9c81206e0f24b8ec295 2 parents 414095a + 7b443f8
@danpoltawski danpoltawski authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 mod/scorm/player.php
View
7 mod/scorm/player.php
@@ -281,7 +281,12 @@
if (!isset($result->toctitle)) {
$result->toctitle = get_string('toc', 'scorm');
}
- $PAGE->requires->js_init_call('M.mod_scorm.init', array($scorm->hidenav, $scorm->hidetoc, $result->toctitle, $name, $sco->id, $adlnav));
+ $jsmodule = array(
+ 'name' => 'mod_scorm',
+ 'fullpath' => '/mod/scorm/module.js',
+ 'requires' => array('json'),
+ );
+ $PAGE->requires->js_init_call('M.mod_scorm.init', array($scorm->hidenav, $scorm->hidetoc, $result->toctitle, $name, $sco->id, $adlnav), false, $jsmodule);
}
if (!empty($forcejs)) {
echo $OUTPUT->box(get_string("forcejavascriptmessage", "scorm"), "generalbox boxaligncenter forcejavascriptmessage");
Please sign in to comment.
Something went wrong with that request. Please try again.