SCORM MDL-21584 detect SCORM 2004 4th edition correctly. thanks to Valerian for the report and patch.

This commit is contained in:
Dan Marsden
2010-02-22 01:31:45 +00:00
parent b7763ed08e
commit 449aa07bee
+1 -1
View File
@@ -31,7 +31,7 @@ function scorm_get_manifest($blocks,$scoes) {
if (isset($metadata['tagData']) && (preg_match("/^(1\.2)$|^(CAM )?(1\.3)$/",$metadata['tagData'],$matches))) {
$scoes->version = 'SCORM_'.$matches[count($matches)-1];
} else {
if (isset($metadata['tagData']) && (preg_match("/^2004 3rd Edition$/",$metadata['tagData'],$matches))) {
if (isset($metadata['tagData']) && (preg_match("/^2004 (3rd|4th) Edition$/",$metadata['tagData'],$matches))) {
$scoes->version = 'SCORM_1.3';
} else {
$scoes->version = 'SCORM_1.2';