Fixed an Hystoric problem with & in aicc_script prerequisites during package importing

Now Moodle is really SCORM 1.2 fully compliant
This commit is contained in:
bobopinna
2006-11-02 16:30:53 +00:00
parent 8357019855
commit 65a1266337
+7 -2
View File
@@ -882,9 +882,14 @@ function scorm_parse_scorm($manifestfile,$scormid) {
$launch = 0;
if (is_file($manifestfile)) {
$xmlstring = file_get_contents($manifestfile);
$xmltext = file_get_contents($manifestfile);
$pattern = '/&(?!\w{2,6};)/';
$replacement = '&';
$xmltext = preg_replace($pattern, $replacement, $xmltext);
$objXML = new xml2Array();
$manifests = $objXML->parse($xmlstring);
$manifests = $objXML->parse($xmltext);
$scoes = new stdClass();
$scoes->version = '';