mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
Merge branch 'MDL-78917-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE
This commit is contained in:
commit
54271fa749
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user