MDL-38336 SCORM: incorrect TOC bulding when 'Display course structure' is on
This commit is contained in:
+12
-4
@@ -1625,13 +1625,21 @@ function scorm_format_toc_for_treeview($user, $scorm, $scoes, $usertracks, $cmid
|
||||
}
|
||||
} else if ($toclink == TOCFULLURL) {
|
||||
$url = $CFG->wwwroot.'/mod/scorm/player.php?'.$sco->url;
|
||||
if ($sco->scormtype == 'sco') {
|
||||
$result->toc .= $sco->statusicon.' <a href="'.$url.'">'.format_string($sco->title).'</a>'.$score."\n";
|
||||
if (!empty($sco->launch)) {
|
||||
if ($sco->scormtype == 'sco') {
|
||||
$result->toc .= $sco->statusicon.' <a href="'.$url.'">'.format_string($sco->title).'</a>'.$score."\n";
|
||||
} else {
|
||||
$result->toc .= ' <a href="'.$url.'">'.format_string($sco->title).'</a>'.$score."\n";
|
||||
}
|
||||
} else {
|
||||
$result->toc .= ' <a href="'.$url.'">'.format_string($sco->title).'</a>'.$score."\n";
|
||||
if ($sco->scormtype == 'sco') {
|
||||
$result->toc .= $sco->statusicon.' '.format_string($sco->title).$score."\n";
|
||||
} else {
|
||||
$result->toc .= ' '.format_string($sco->title).$score."\n";
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if ($sco->launch) {
|
||||
if (!empty($sco->launch)) {
|
||||
if ($sco->scormtype == 'sco') {
|
||||
$result->toc .= '<a title="'.$sco->url.'">'.$sco->statusicon.' '.format_string($sco->title).' '.$score.'</a>';
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user