MDL-71062 core: Step 1 deprecation of print_error function
This commit is contained in:
@@ -38,7 +38,7 @@ $mform = null;
|
||||
if ($taskname) {
|
||||
$task = \core\task\manager::get_scheduled_task($taskname);
|
||||
if (!$task) {
|
||||
print_error('invaliddata');
|
||||
throw new \moodle_exception('invaliddata');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user