MDL-55348 wiki: Convert 'section' WS params to PARAM_RAW

This commit is contained in:
Dani Palou
2016-07-28 10:39:46 +02:00
parent 2a9c12ce0b
commit a44bee5f2d
2 changed files with 12 additions and 10 deletions
+2 -2
View File
@@ -822,7 +822,7 @@ class mod_wiki_external extends external_api {
return new external_function_parameters (
array(
'pageid' => new external_value(PARAM_INT, 'Page ID to edit.'),
'section' => new external_value(PARAM_TEXT, 'Section page title.', VALUE_DEFAULT, null)
'section' => new external_value(PARAM_RAW, 'Section page title.', VALUE_DEFAULT, null)
)
);
}
@@ -1086,7 +1086,7 @@ class mod_wiki_external extends external_api {
array(
'pageid' => new external_value(PARAM_INT, 'Page ID.'),
'content' => new external_value(PARAM_RAW, 'Page contents.'),
'section' => new external_value(PARAM_TEXT, 'Section page title.', VALUE_DEFAULT, null)
'section' => new external_value(PARAM_RAW, 'Section page title.', VALUE_DEFAULT, null)
)
);
}