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:
+7
-2
@@ -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 = '';
|
||||
|
||||
Reference in New Issue
Block a user