MDL-30961 get_course_contents: returned activity name should not be check against PARAM_TEXT, it could be anything

This commit is contained in:
Jerome Mouneyrac
2012-11-30 14:25:48 +08:00
parent e4592b226d
commit 3fd3efac7b
+1 -1
View File
@@ -198,7 +198,7 @@ class core_course_external extends external_api {
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'),