From 3fd3efac7b41b68c542bbce6cf9f603e6bbeb17d Mon Sep 17 00:00:00 2001 From: Jerome Mouneyrac Date: Fri, 30 Nov 2012 14:22:16 +0800 Subject: [PATCH] MDL-30961 get_course_contents: returned activity name should not be check against PARAM_TEXT, it could be anything --- course/externallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/externallib.php b/course/externallib.php index 861ec2dc76d..b7cc959af5a 100644 --- a/course/externallib.php +++ b/course/externallib.php @@ -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'),