Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit eb2a36fb550a1854dca6472edddceb68be1adbb0 1 parent a452960
authored March 15, 2007
2  mod/scorm/datamodels/aicclib.php
@@ -408,9 +408,9 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
408 408
                     if ($play && empty($scoid)) {
409 409
                         $scoid = $sco->id;
410 410
                     }
  411
+                    $incomplete = true;
411 412
                     if ($sco->scormtype == 'sco') {
412 413
                         $statusicon = '<img src="'.$scormpixdir.'/notattempted.gif" alt="'.get_string('notattempted','scorm').'" title="'.get_string('notattempted','scorm').'" />';
413  
-                        $incomplete = true;
414 414
                     } else {
415 415
                         $statusicon = '<img src="'.$scormpixdir.'/asset.gif" alt="'.get_string('asset','scorm').'" title="'.get_string('asset','scorm').'" />';
416 416
                     }
2  mod/scorm/datamodels/scorm_12lib.php
@@ -287,9 +287,9 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
287 287
                     if ($play && empty($scoid)) {
288 288
                         $scoid = $sco->id;
289 289
                     }
  290
+                    $incomplete = true;
290 291
                     if ($sco->scormtype == 'sco') {
291 292
                         $statusicon = '<img src="'.$scormpixdir.'/notattempted.gif" alt="'.get_string('notattempted','scorm').'" title="'.get_string('notattempted','scorm').'" />';
292  
-                        $incomplete = true;
293 293
                     } else {
294 294
                         $statusicon = '<img src="'.$scormpixdir.'/asset.gif" alt="'.get_string('asset','scorm').'" title="'.get_string('asset','scorm').'" />';
295 295
                     }
2  mod/scorm/datamodels/scorm_13lib.php
@@ -471,9 +471,9 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n
471 471
                     if ($play && empty($scoid)) {
472 472
                         $scoid = $sco->id;
473 473
                     }
  474
+                    $incomplete = true;
474 475
                     if ($sco->scormtype == 'sco') {
475 476
                         $statusicon = '<img src="'.$scormpixdir.'/notattempted.gif" alt="'.get_string('notattempted','scorm').'" title="'.get_string('notattempted','scorm').'" />';
476  
-                        $incomplete = true;
477 477
                     } else {
478 478
                         $statusicon = '<img src="'.$scormpixdir.'/asset.gif" alt="'.get_string('asset','scorm').'" title="'.get_string('asset','scorm').'" />';
479 479
                     }

0 notes on commit eb2a36f

Please sign in to comment.
Something went wrong with that request. Please try again.