Merge branch 'm20_MDL-26176_cleanup' of github.com:danmarsden/moodle
[moodle.git] / mod / scorm / prereqs.php
index 6d25bbc..3c84e6e 100644 (file)
@@ -1,4 +1,7 @@
 <?php
+
+    // this page is called via AJAX to repopulte the TOC when LMSFinish() is called
+
     require_once('../../config.php');
     require_once($CFG->dirroot.'/mod/scorm/locallib.php');
 
         $result = true;
         $request = null;
         if (has_capability('mod/scorm:savetrack', get_context_instance(CONTEXT_MODULE,$cm->id))) {
-            $result = scorm_get_toc($USER,$scorm,'structurelist',$currentorg,$scoid,$mode,$attempt,true, false);
+            $result = scorm_get_toc($USER,$scorm,TOCJSLINK,$currentorg,$scoid,$mode,$attempt,true, false);
             echo $result->toc;
         }
-        //echo "<ul><li>The Heading<ul>";
-        //echo "<li><a title='/moodledev/blah1'>Blah 1</a></li>";
-        //echo "<li><a title='/moodledev/blah2'>Blah 2</a></li>";
-        //echo "</ul></li></ul>";
     }