Merge branch 'MDL-78917-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE

This commit is contained in:
Andrew Nicols 2023-09-07 21:52:06 +08:00 committed by Jun Pataleta
commit 54271fa749
No known key found for this signature in database
GPG Key ID: F83510526D99E2C7

View File

@ -85,8 +85,8 @@ class external_api {
$function->classpath = $CFG->dirroot.'/'.$function->classpath;
}
if (!file_exists($function->classpath)) {
throw new coding_exception('Cannot find file ' . $function->classpath .
' with external function implementation');
throw new coding_exception("Cannot find file {$function->classpath} with external function implementation " .
"for {$function->classname}::{$function->methodname}");
}
require_once($function->classpath);
if (!class_exists($function->classname)) {