Skip to content

Commit

Permalink
Remove print_error
Browse files Browse the repository at this point in the history
  • Loading branch information
Laur0r committed Mar 31, 2022
1 parent d130bbb commit dbfcb79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/local/backup/backup_lifecycle_workflow.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function execute() {
make_temp_directory('lifecycle');
$this->tempfilename = $CFG->tempdir .'/lifecycle/'. md5(sesskey().microtime());
if (!$handle = fopen($this->tempfilename, 'w+b')) {
print_error('cannotcreatetempdir');
throw new \moodle_exception('cannotcreatetempdir');
}
$this->writer = new \XMLWriter();
$this->writer->openMemory();
Expand Down

0 comments on commit dbfcb79

Please sign in to comment.