MDL-63882 core_message: Use validate_parameters
commitf0e03e69189c11e302e8e61720ed7c444bb24d4d
authorDamyon Wiese <damyon@moodle.com>
Tue, 6 Nov 2018 07:06:56 +0000 (6 15:06 +0800)
committerDamyon Wiese <damyon@moodle.com>
Tue, 13 Nov 2018 03:02:40 +0000 (13 11:02 +0800)
tree1bbf9674594908a759188090b8af3cccbd1d9630
parente1e20d0c9be0410a41e8a370ec2ffe0182a257c9
MDL-63882 core_message: Use validate_parameters

external_api::validate_parameters() sets defaults, and does cleaning and sanitisation of the
inputs. It returns the cleaned params. We can't be re-using the arguments to this function
instead of the results, because they have not been cleaned.
message/externallib.php