MDL-77355 Web services: add function class not found

Fixes a regression caused by MDL-76583 That prevents functions
being added to new or existing external services.
This commit is contained in:
Matt Porritt 2023-02-22 16:03:57 +11:00 committed by Paul Holden
parent fba0658777
commit 6abfde47dc
No known key found for this signature in database
GPG Key ID: A81A96D6045F6164

View File

@ -196,7 +196,7 @@ class external_service_functions_form extends moodleform {
//we add the descriptions to the functions
foreach ($functions as $functionid => $functionname) {
//retrieve full function information (including the description)
$function = external_api::external_function_info($functionname);
$function = \core_external\external_api::external_function_info($functionname);
if (empty($function->deprecated)) {
$functions[$functionid] = $function->name . ':' . $function->description;
} else {