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 5f1d8f2 commit d872b3dc1639aa89af7bf308ee13163f77a6ce3c @mouneyrac mouneyrac committed Nov 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/externallib.php
View
@@ -212,7 +212,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 d872b3d

Please sign in to comment.