Permalink
Browse files

Fixed the problem with asset and review mode checkbox in view.php

  • Loading branch information...
1 parent 1e7321b commit 264062798be0fd0ceb3859c4715937c8e3edf6ef bobopinna committed Mar 15, 2007
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/scorm/datamodels/scorm_12lib.php
View
4 mod/scorm/datamodels/scorm_12lib.php
@@ -282,7 +282,7 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
if ($sco->scormtype == 'sco') {
$statusicon = '<img src="'.$scormpixdir.'/'.$usertrack->status.'.gif" alt="'.$strstatus.'" title="'.$strstatus.'" />';
} else {
- $statusicon = '<img src="'.$scormpixdir.'/assetc.gif" alt="'.get_string('assetlauched','scorm').'" title="'.get_string('assetlaunched','scorm').'" />';
+ $statusicon = '<img src="'.$scormpixdir.'/assetc.gif" alt="'.get_string('assetlaunched','scorm').'" title="'.get_string('assetlaunched','scorm').'" />';
}
if (($usertrack->status == 'notattempted') || ($usertrack->status == 'incomplete') || ($usertrack->status == 'browsed')) {
@@ -302,9 +302,9 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
if ($play && empty($scoid)) {
$scoid = $sco->id;
}
+ $incomplete = true;
if ($sco->scormtype == 'sco') {
$statusicon = '<img src="'.$scormpixdir.'/notattempted.gif" alt="'.get_string('notattempted','scorm').'" title="'.get_string('notattempted','scorm').'" />';
- $incomplete = true;
} else {
$statusicon = '<img src="'.$scormpixdir.'/asset.gif" alt="'.get_string('asset','scorm').'" title="'.get_string('asset','scorm').'" />';
}

0 comments on commit 2640627

Please sign in to comment.