MDL-60364 Web service: E_ERROR in course_check_updates web service
The error stated that course_check_updates() is undefined, this function is in the course lib.php file.
This commit is contained in:
@@ -3135,6 +3135,7 @@ class core_course_external extends external_api {
|
||||
*/
|
||||
public static function check_updates($courseid, $tocheck, $filter = array()) {
|
||||
global $CFG, $DB;
|
||||
require_once($CFG->dirroot . "/course/lib.php");
|
||||
|
||||
$params = self::validate_parameters(
|
||||
self::check_updates_parameters(),
|
||||
|
||||
Reference in New Issue
Block a user