// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
+echo html_writer::start_tag('script');
?>
<!--// hopefully fool ie IE proof way of getting DOM element
if (getLoggingActive() == "A") {
AppendToLog("Moodle Logging Deactivated", 0);
setLoggingActive('N');
- logButton.innerHTML = '--><?php echo addslashes_js(get_string('scormloggingoff', 'scorm')); ?>';
+ logButton.innerHTML = '-><?php echo addslashes_js(get_string('scormloggingoff', 'scorm')); ?>';
} else {
setLoggingActive('A');
AppendToLog("Moodle Logging Activated", 0);
var content = safeGetElement(document, 'scormpage');
content.insertBefore(logButton, content.firstChild);
}
+-->
+
+<?php
+echo html_writer::end_tag('script');
// pull in the debugging utilities
if (scorm_debugging($scorm)) {
- $PAGE->requires->js($CFG->dirroot.'/mod/scorm/datamodels/debug.js.php', true);
+ require_once($CFG->dirroot.'/mod/scorm/datamodels/debug.js.php');
echo html_writer::script('AppendToLog("Moodle SCORM 1.2 API Loaded, Activity: '.$scorm->name.', SCO: '.$sco->identifier.'", 0);');
}
\ No newline at end of file
// pull in the debugging utilities
if (scorm_debugging($scorm)) {
- $PAGE->requires->js($CFG->dirroot.'/mod/scorm/datamodels/debug.js.php', true);
+ require_once($CFG->dirroot.'/mod/scorm/datamodels/debug.js.php');
echo html_writer::script('AppendToLog("Moodle SCORM 1.3 API Loaded, Activity: '.$scorm->name.', SCO: '.$sco->identifier.'", 0);');
}