Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodle
moodle
Commits
0b9fc18b
Commit
0b9fc18b
authored
Jul 14, 2015
by
Juan Leyva
Browse files
MDL-50427 mod_scorm: Rename scorm_view_display to scorm_print_launch
In order to avoid confusion with the new scorm_view fuction
parent
e9bf3011
Changes
3
Hide whitespace changes
Inline
Side-by-side
mod/scorm/locallib.php
View file @
0b9fc18b
...
...
@@ -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
)
{
...
...
mod/scorm/view.php
View file @
0b9fc18b
...
...
@@ -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"
);
...
...
mod/upgrade.txt
View file @
0b9fc18b
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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment