mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00
SCORM MDL-25781 fix links in TOC on view.php
This commit is contained in:
parent
8cdc85ac62
commit
7cc7cf58f5
6 changed files with 37 additions and 32 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue