mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-76723 mod_page: Use external_format_value constructor properly
* 'Content format' is passed to the $default parameter which is incorrect. * Also removed passing of VALUE_REQUIRED because it's already the default value for the $required parameter.
This commit is contained in:
parent
23cbb7ffa4
commit
5b5a3fd550
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ class mod_page_external extends external_api {
|
||||||
helper_for_get_mods_by_courses::standard_coursemodule_elements_returns(),
|
helper_for_get_mods_by_courses::standard_coursemodule_elements_returns(),
|
||||||
[
|
[
|
||||||
'content' => new external_value(PARAM_RAW, 'Page content'),
|
'content' => new external_value(PARAM_RAW, 'Page content'),
|
||||||
'contentformat' => new external_format_value('content', VALUE_REQUIRED, 'Content format'),
|
'contentformat' => new external_format_value('content'),
|
||||||
'contentfiles' => new external_files('Files in the content'),
|
'contentfiles' => new external_files('Files in the content'),
|
||||||
'legacyfiles' => new external_value(PARAM_INT, 'Legacy files flag'),
|
'legacyfiles' => new external_value(PARAM_INT, 'Legacy files flag'),
|
||||||
'legacyfileslast' => new external_value(PARAM_INT, 'Legacy files last control flag'),
|
'legacyfileslast' => new external_value(PARAM_INT, 'Legacy files last control flag'),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue