Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
eddec36
)
MDL-49612 forum: Fix some external_value creation in params declaration
author
Dani Palou
<dani@moodle.com>
Tue, 26 Jan 2016 07:55:55 +0000
(08:55 +0100)
committer
Dani Palou
<dani@moodle.com>
Tue, 26 Jan 2016 07:55:55 +0000
(08:55 +0100)
mod/forum/externallib.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/forum/externallib.php
b/mod/forum/externallib.php
index
d93a6f0
..
8b5da83
100644
(file)
--- a/
mod/forum/externallib.php
+++ b/
mod/forum/externallib.php
@@
-39,7
+39,7
@@
class mod_forum_external extends external_api {
return new external_function_parameters (
array(
'courseids' => new external_multiple_structure(new external_value(PARAM_INT, 'course ID',
return new external_function_parameters (
array(
'courseids' => new external_multiple_structure(new external_value(PARAM_INT, 'course ID',
-
'',
VALUE_REQUIRED, '', NULL_NOT_ALLOWED), 'Array of Course IDs', VALUE_DEFAULT, array()),
+ VALUE_REQUIRED, '', NULL_NOT_ALLOWED), 'Array of Course IDs', VALUE_DEFAULT, array()),
)
);
}
)
);
}
@@
-158,7
+158,7
@@
class mod_forum_external extends external_api {
return new external_function_parameters (
array(
'forumids' => new external_multiple_structure(new external_value(PARAM_INT, 'forum ID',
return new external_function_parameters (
array(
'forumids' => new external_multiple_structure(new external_value(PARAM_INT, 'forum ID',
-
'',
VALUE_REQUIRED, '', NULL_NOT_ALLOWED), 'Array of Forum IDs', VALUE_REQUIRED),
+ VALUE_REQUIRED, '', NULL_NOT_ALLOWED), 'Array of Forum IDs', VALUE_REQUIRED),
'limitfrom' => new external_value(PARAM_INT, 'limit from', VALUE_DEFAULT, 0),
'limitnum' => new external_value(PARAM_INT, 'limit number', VALUE_DEFAULT, 0)
)
'limitfrom' => new external_value(PARAM_INT, 'limit from', VALUE_DEFAULT, 0),
'limitnum' => new external_value(PARAM_INT, 'limit number', VALUE_DEFAULT, 0)
)