]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed the problem with asset and review mode checkbox in view.php
authorbobopinna <bobopinna>
Thu, 15 Mar 2007 21:19:47 +0000 (21:19 +0000)
committerbobopinna <bobopinna>
Thu, 15 Mar 2007 21:19:47 +0000 (21:19 +0000)
mod/scorm/datamodels/scorm_12lib.php

index 9cdf0c95eb82f74e700464b44003fb93ece68283..b901fa76a8395d09f2121604adbbd4717e1a5aa5 100644 (file)
@@ -283,7 +283,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')) {
@@ -303,9 +303,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').'" />';
                         }