mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Merge branch 'MDL-51564-master' of git://github.com/jleyva/moodle
This commit is contained in:
commit
f5e68c2892
12 changed files with 44 additions and 17 deletions
|
@ -651,7 +651,7 @@ class mod_scorm_external extends external_api {
|
|||
$module['id'] = $scorm->id;
|
||||
$module['coursemodule'] = $scorm->coursemodule;
|
||||
$module['course'] = $scorm->course;
|
||||
$module['name'] = format_string($scorm->name, true, array('context' => $context));
|
||||
$module['name'] = external_format_string($scorm->name, $context->id);
|
||||
list($module['intro'], $module['introformat']) =
|
||||
external_format_text($scorm->intro, $scorm->introformat, $context->id, 'mod_scorm', 'intro', $scorm->id);
|
||||
|
||||
|
@ -727,7 +727,7 @@ class mod_scorm_external extends external_api {
|
|||
'id' => new external_value(PARAM_INT, 'SCORM id'),
|
||||
'coursemodule' => new external_value(PARAM_INT, 'Course module id'),
|
||||
'course' => new external_value(PARAM_INT, 'Course id'),
|
||||
'name' => new external_value(PARAM_TEXT, 'SCORM name'),
|
||||
'name' => new external_value(PARAM_RAW, 'SCORM name'),
|
||||
'intro' => new external_value(PARAM_RAW, 'The SCORM intro'),
|
||||
'introformat' => new external_format_value('intro'),
|
||||
'packagesize' => new external_value(PARAM_INT, 'SCORM zip package size', VALUE_OPTIONAL),
|
||||
|
|
|
@ -1,5 +1,12 @@
|
|||
This files describes API changes in the mod_scorm code.
|
||||
|
||||
=== 3.0 ===
|
||||
|
||||
* External function mod_scorm_external::get_scorms_by_courses returned parameter "name" has been changed to PARAM_RAW,
|
||||
this is because the new external_format_string function may return raw data if the global moodlewssettingraw parameter is used.
|
||||
* Function scorm_view_display was renamed to scorm_print_launch to avoid
|
||||
confussion with new function scorm_view.
|
||||
|
||||
=== 2.8 ===
|
||||
|
||||
* Coding style fixes. A large number of coding style issues were fixed in MDL-45887. This means any local modifications
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue