diff --git a/course/rest.php b/course/rest.php index a90cd52ea7e..c3496f4d60b 100644 --- a/course/rest.php +++ b/course/rest.php @@ -45,7 +45,7 @@ require_login($course->id); require_capability('moodle/course:update', $context); if (!empty($CFG->disablecourseajax)) { - errorl_log('Course AJAX not allowed'); + error_log('Course AJAX not allowed'); die; }