MDL-26863: fixed regression by an appropriate Merging From Branch using 1.9
authorMatteo Scaramuccia <moodle@matteoscaramuccia.com>
Thu, 17 Mar 2011 17:15:42 +0000 (18:15 +0100)
committerMatteo Scaramuccia <moodle@matteoscaramuccia.com>
Thu, 17 Mar 2011 17:15:42 +0000 (18:15 +0100)
mod/scorm/datamodels/debug.js.php
mod/scorm/datamodels/scorm_12.js.php
mod/scorm/datamodels/scorm_13.js.php

index 8976d12..ce27636 100644 (file)
@@ -735,5 +735,4 @@ if (getLoggingActive() == "A") {
 }
 var content = safeGetElement(document, 'scormpage');
 content.insertBefore(logButton, content.firstChild);
-AppendToLog("Moodle SCORM 1.2 API Loaded, Activity: <?php echo $scorm->name; ?>, SCO: <?php echo $sco->identifier; ?>", 0);
 
index 7331813..8d466a4 100644 (file)
@@ -641,6 +641,7 @@ var API = new SCORMapi1_2();
 // pull in the debugging utilities
 if (scorm_debugging($scorm)) {
    include_once($CFG->dirroot.'/mod/scorm/datamodels/debug.js.php');
+   echo 'AppendToLog("Moodle SCORM 1.2 API Loaded, Activity: '.$scorm->name.', SCO: '.$sco->identifier.'", 0);';
 }
  ?>
 
index fd514a8..5fdce9a 100644 (file)
@@ -1278,5 +1278,6 @@ var API_1484_11 = new SCORMapi1_3();
 // pull in the debugging utilities
 if (scorm_debugging($scorm)) {
     include_once($CFG->dirroot.'/mod/scorm/datamodels/debug.js.php');
+    echo 'AppendToLog("Moodle SCORM 1.3 API Loaded, Activity: '.$scorm->name.', SCO: '.$sco->identifier.'", 0);';
 }
  ?>