Skip to content

Commit

Permalink
MDL-7323 AICC Import does not handle Core_Vendor + remove tabs and am…
Browse files Browse the repository at this point in the history
…biguous else - propogated to 1.8.
  • Loading branch information
piers committed Jul 24, 2008
1 parent a9b2d79 commit 94446a8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions mod/scorm/datamodels/aicclib.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,11 @@ function scorm_parse_aicc($pkgdir,$scormid) {
$scodata->value = $element->mastery_score;
$dataid = insert_record('scorm_scoes_data',$scodata);
}
if (isset($element->core_vendor)) {
$scodata->name = 'datafromlms';
$scodata->value = eregi_replace('<cr>', "\r\n", $element->core_vendor);
$dataid = insert_record('scorm_scoes_data',$scodata);
}
}
if ($launch==0) {
$launch = $id;
Expand Down Expand Up @@ -363,8 +368,9 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
$isvisible = true;
}
}
else
$isvisible = true;
else {
$isvisible = true;
}
if ($parents[$level]!=$sco->parent) {
if ($newlevel = array_search($sco->parent,$parents)) {
for ($i=0; $i<($level-$newlevel); $i++) {
Expand Down

0 comments on commit 94446a8

Please sign in to comment.