mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
fixed a problem with Firefox and bad schema version
This commit is contained in:
parent
7f4e5cce98
commit
23f6c62b62
@ -413,10 +413,11 @@ function scorm_endElement($parser, $name) {
|
||||
$manifest = '';
|
||||
}
|
||||
if ($name == 'SCHEMAVERSION') {
|
||||
if (preg_match("/(\d+)\.(\d+)$/",$datacontent,$matches)) {
|
||||
$version = 'SCORM_'.$matches[1].'.'.$matches[2];
|
||||
}
|
||||
//$version = $datacontent;
|
||||
if (preg_match("/^(1\.2)$|^(CAM )?(1\.3)$/",$datacontent,$matches)) {
|
||||
$version = 'SCORM_'.$matches[count($matches)-1];
|
||||
} else {
|
||||
$version = 'SCORM_1.2';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -101,7 +101,11 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>LoadSCO</title>
|
||||
<meta http-equiv="refresh" content="1;URL=<?php echo $result ?>" />
|
||||
<script language="javascript" type="text/javascript">
|
||||
<!--
|
||||
setTimeout('document.location = "<?php echo $result ?>";',1000);
|
||||
-->
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
@ -142,7 +142,7 @@
|
||||
text-indent:-4ex;
|
||||
}
|
||||
</style>
|
||||
<script language="Javascript">
|
||||
<script language="javascript" type="text/javascript">
|
||||
<!--
|
||||
function playSCO(scoid) {
|
||||
if (scoid == 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user