Permalink
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...
1 parent e4592b2 commit 3fd3efac7b41b68c542bbce6cf9f603e6bbeb17d @mouneyrac mouneyrac committed Nov 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/externallib.php
View
@@ -198,7 +198,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'),

0 comments on commit 3fd3efa

Please sign in to comment.