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
+2 -2
View File
@@ -76,9 +76,9 @@
* $a = new stdClass();
* $a->url = 'https://download.moodle.org/langpack/2.0/es.zip';
* $a->dest= $CFG->dataroot.'/lang';
* print_error($cd->get_error(), 'error', '', $a);
* throw new \moodle_exception($cd->get_error(), 'error', '', $a);
* } else {
* print_error($cd->get_error(), 'error');
* throw new \moodle_exception($cd->get_error(), 'error');
* }
* break;
* case COMPONENT_UPTODATE: