Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 7b443f87ddc063a77063395f6a4903ed16df7861 1 parent 76bb36d
@davosmith davosmith 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.