MDL-30961 get_course_contents: returned activity name should not be check against...
authorJerome Mouneyrac <jerome@mouneyrac.com>
Fri, 30 Nov 2012 06:22:16 +0000 (14:22 +0800)
committerJerome Mouneyrac <jerome@mouneyrac.com>
Fri, 30 Nov 2012 06:24:22 +0000 (14:24 +0800)
course/externallib.php

index 88fd0fa..1d91b94 100644 (file)
@@ -212,7 +212,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'),