Skip to content

Commit

Permalink
MDL-46586 files: Invalid return parameters definition in core_files_g…
Browse files Browse the repository at this point in the history
…et_files external function
  • Loading branch information
jleyva committed Sep 5, 2014
1 parent 457f818 commit b893dc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/externallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static function get_files_parameters() {
'filearea' => new external_value(PARAM_TEXT, 'file area'),
'itemid' => new external_value(PARAM_INT, 'associated id'),
'filepath' => new external_value(PARAM_PATH, 'file path'),
'filename' => new external_value(PARAM_FILE, 'file name'),
'filename' => new external_value(PARAM_TEXT, 'file name'),
'modified' => new external_value(PARAM_INT, 'timestamp to return files changed after this time.', VALUE_DEFAULT, null),
'contextlevel' => new external_value(PARAM_ALPHA, 'The context level for the file location.', VALUE_DEFAULT, null),
'instanceid' => new external_value(PARAM_INT, 'The instance id for where the file is located.', VALUE_DEFAULT, null)
Expand Down Expand Up @@ -209,7 +209,7 @@ public static function get_files_returns() {
'filearea' => new external_value(PARAM_AREA, ''),
'itemid' => new external_value(PARAM_INT, ''),
'filepath' => new external_value(PARAM_TEXT, ''),
'filename' => new external_value(PARAM_FILE, ''),
'filename' => new external_value(PARAM_TEXT, ''),
'isdir' => new external_value(PARAM_BOOL, ''),
'url' => new external_value(PARAM_TEXT, ''),
'timemodified' => new external_value(PARAM_INT, ''),
Expand Down

0 comments on commit b893dc2

Please sign in to comment.