SCORM MDL-25781 fix links in TOC on view.php

This commit is contained in:
Dan Marsden 2011-01-28 22:38:08 +13:00
parent 8cdc85ac62
commit 7cc7cf58f5
6 changed files with 37 additions and 32 deletions

View file

@ -23,6 +23,9 @@ define('AVERAGEATTEMPT', '1');
define('FIRSTATTEMPT', '2');
define('LASTATTEMPT', '3');
define('TOCJSLINK', 1);
define('TOCFULLURL', 2);
/// Local Library of functions for module scorm
/**
@ -759,7 +762,7 @@ function scorm_view_display ($user, $scorm, $action, $cm, $boxwidth='') {
}
require_once($CFG->dirroot.'/mod/scorm/datamodels/'.$scorm->version.'lib.php');
$result = scorm_get_toc($user,$scorm,'structlist',$orgidentifier);
$result = scorm_get_toc($user,$scorm,TOCFULLURL,$orgidentifier);
$incomplete = $result->incomplete;
// do we want the TOC to be displayed?