MDL-76987 webservice: Correct namespace for external_api

This commit is contained in:
Andrew Nicols 2023-01-23 20:37:05 +08:00
parent df502b3e4c
commit 5e33d57dbe

View File

@ -112,7 +112,10 @@ class webservice_rest_server extends webservice_base_server {
//Check that the returned values are valid
try {
if ($this->function->returns_desc != null) {
$validatedvalues = external_api::clean_returnvalue($this->function->returns_desc, $this->returns);
$validatedvalues = \core_external\external_api::clean_returnvalue(
$this->function->returns_desc,
$this->returns
);
} else {
$validatedvalues = null;
}