Skip to content
Browse files

MDL-39219 mod_scorm - make sure YUI JSON module is loaded

  • Loading branch information...
1 parent c4dccb9 commit c23ff8e3a53fbf22204bca79cbc10377c335667c @davosmith davosmith committed Apr 23, 2013
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");

0 comments on commit c23ff8e

Please sign in to comment.
Something went wrong with that request. Please try again.