Skip to content

Commit

Permalink
MDL-30961 get_course_contents: returned activity name should not be c…
Browse files Browse the repository at this point in the history
…heck against PARAM_TEXT, it could be anything
  • Loading branch information
mouneyrac committed Nov 30, 2012
1 parent e4592b2 commit 3fd3efa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/externallib.php
Expand Up @@ -198,7 +198,7 @@ public static function get_course_contents_returns() {
array( array(
'id' => new external_value(PARAM_INT, 'activity id'), 'id' => new external_value(PARAM_INT, 'activity id'),
'url' => new external_value(PARAM_URL, 'activity url', VALUE_OPTIONAL), '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), 'description' => new external_value(PARAM_RAW, 'activity description', VALUE_OPTIONAL),
'visible' => new external_value(PARAM_INT, 'is the module visible', VALUE_OPTIONAL), 'visible' => new external_value(PARAM_INT, 'is the module visible', VALUE_OPTIONAL),
'modicon' => new external_value(PARAM_URL, 'activity icon url'), 'modicon' => new external_value(PARAM_URL, 'activity icon url'),
Expand Down

0 comments on commit 3fd3efa

Please sign in to comment.