Permalink
Browse files

fixed two typos in manifest parsing

  • Loading branch information...
1 parent 92f43f0 commit c7ba7d1197e8fdc298e7e9bfdb85b270c0ac41bd bobopinna committed Apr 11, 2005
Showing with 6 additions and 6 deletions.
  1. +6 −6 mod/scorm/lib.php
View
@@ -532,14 +532,14 @@ function scorm_parse($basedir,$file,$scorm_id) {
$sco->launch = $resources[($scoes[$j]['identifierref'])]['href'];
if (!isset($scoes[$j]['parameters'])) {
- $scoes[$j]['paramenters'] = '';
+ $scoes[$j]['parameters'] = '';
}
- $sco->paramenters = $scoes[$j]['parameters'];
+ $sco->parameters = $scoes[$j]['parameters'];
- if (!isset($resources[($scoes[$j]['identifierref'])]['type'])) {
- $resources[($scoes[$j]['identifierref'])]['type'] = '';
+ if (!isset($resources[($scoes[$j]['identifierref'])]['scormtype'])) {
+ $resources[($scoes[$j]['identifierref'])]['scormtype'] = '';
}
- $sco->type = $resources[($scoes[$j]['identifierref'])]['type'];
+ $sco->scormtype = $resources[($scoes[$j]['identifierref'])]['scormtype'];
if (!isset($scoes[$j]['previous'])) {
$scoes[$j]['previous'] = 0;
@@ -566,7 +566,7 @@ function scorm_parse($basedir,$file,$scorm_id) {
$sco->title = $label;
$sco->parent = '/';
$sco->launch = $resource['href'];
- $sco->type = $resource['type'];
+ $sco->scormtype = $resource['type'];
$id = insert_record('scorm_scoes',$sco);
if ($launch == 0) {

0 comments on commit c7ba7d1

Please sign in to comment.