mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 00:42:54 +02:00
MDL-50427 mod_scorm: Rename scorm_view_display to scorm_print_launch
In order to avoid confusion with the new scorm_view fuction
This commit is contained in:
parent
e9bf301145
commit
0b9fc18ba1
@ -840,7 +840,15 @@ function scorm_get_all_attempts($scormid, $userid) {
|
||||
return $attemptids;
|
||||
}
|
||||
|
||||
function scorm_view_display ($user, $scorm, $action, $cm) {
|
||||
/**
|
||||
* Displays the entry form and toc if required.
|
||||
*
|
||||
* @param stdClass $user user object
|
||||
* @param stdClass $scorm scorm object
|
||||
* @param string $action base URL for the organizations select box
|
||||
* @param stdClass $cm course module object
|
||||
*/
|
||||
function scorm_print_launch ($user, $scorm, $action, $cm) {
|
||||
global $CFG, $DB, $PAGE, $OUTPUT, $COURSE;
|
||||
|
||||
if ($scorm->updatefreq == SCORM_UPDATE_EVERYTIME) {
|
||||
|
@ -173,7 +173,7 @@ if (!empty($scorm->timeclose) && $timenow > $scorm->timeclose) {
|
||||
$scormopen = false;
|
||||
}
|
||||
if ($scormopen && empty($launch)) {
|
||||
scorm_view_display($USER, $scorm, 'view.php?id='.$cm->id, $cm);
|
||||
scorm_print_launch($USER, $scorm, 'view.php?id='.$cm->id, $cm);
|
||||
}
|
||||
if (!empty($forcejs)) {
|
||||
echo $OUTPUT->box(get_string("forcejavascriptmessage", "scorm"), "generalbox boxaligncenter forcejavascriptmessage");
|
||||
|
@ -1,6 +1,10 @@
|
||||
This files describes API changes in /mod/* - activity modules,
|
||||
information provided here is intended especially for developers.
|
||||
|
||||
=== 3.0 ===
|
||||
|
||||
* Function scorm_view_display was renamed to scorm_print_launch to avoid confussion with new function scorm_view.
|
||||
|
||||
=== 2.9 ===
|
||||
|
||||
* Added Grade to pass field to mod_form for activities that support grading.
|
||||
|
Loading…
x
Reference in New Issue
Block a user