From 5cb1cf76954083480ae7afc41d7f9842062c451b Mon Sep 17 00:00:00 2001 From: Stephen Bourget Date: Wed, 8 May 2019 20:47:29 -0400 Subject: [PATCH] MDL-69900 core_backup: Allow IMSCC v1.0 restore to finish --- backup/cc/cc2moodle.php | 2 +- backup/cc/entities.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backup/cc/cc2moodle.php b/backup/cc/cc2moodle.php index 88895a99319..245065afe70 100644 --- a/backup/cc/cc2moodle.php +++ b/backup/cc/cc2moodle.php @@ -794,7 +794,7 @@ class cc2moodle { } } - protected function critical_error ($text) { + protected static function critical_error ($text) { $path_to_log = static::log_file(); diff --git a/backup/cc/entities.class.php b/backup/cc/entities.class.php index 4a8ef064e9f..712b84f7871 100644 --- a/backup/cc/entities.class.php +++ b/backup/cc/entities.class.php @@ -76,7 +76,7 @@ class entities { cc2moodle::log_action('Load the XML resource file: '.$path_to_file); if (!$resource->load($path_to_file)) { - cc2moodle::log_action('Cannot load the XML resource file: ' . $path_to_file, true); + cc2moodle::log_action('Cannot load the XML resource file: ' . $path_to_file, false); } return $resource;