Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-30961 get_course_contents: returned activity name should not be c…

…heck against PARAM_TEXT, it could be anything
  • Loading branch information...
commit 11d819364e48ab74ca0df799554a59bfc447ad1f 1 parent f42c34a
@mouneyrac mouneyrac authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  course/externallib.php
View
2  course/externallib.php
@@ -211,7 +211,7 @@ public static function get_course_contents_returns() {
array(
'id' => new external_value(PARAM_INT, 'activity id'),
'url' => new external_value(PARAM_URL, 'activity url', VALUE_OPTIONAL),
- 'name' => new external_value(PARAM_TEXT, 'activity module name'),
+ 'name' => new external_value(PARAM_RAW, 'activity module name'),
'description' => new external_value(PARAM_RAW, 'activity description', VALUE_OPTIONAL),
'visible' => new external_value(PARAM_INT, 'is the module visible', VALUE_OPTIONAL),
'modicon' => new external_value(PARAM_URL, 'activity icon url'),
Please sign in to comment.
Something went wrong with that request. Please try again.