MDL-71062 core: Step 1 deprecation of print_error function

This commit is contained in:
Sujith Haridasan
2022-07-13 08:20:54 +05:30
parent a23f0bff3e
commit 73d604369d
506 changed files with 1511 additions and 1488 deletions
+1 -1
View File
@@ -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');
}
}