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-12-10 15:00:00 +13:00
committed by Sam Hemelryk
parent 0663096dc6
commit c91c7fcded
+1 -1
View File
@@ -211,7 +211,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'),